Allow Rsx.Route() to accept string integers as params
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -349,6 +349,9 @@ class Rsx {
|
||||
let params_obj = {};
|
||||
if (typeof params === 'number') {
|
||||
params_obj = { id: params };
|
||||
} else if (typeof params === 'string' && /^\d+$/.test(params)) {
|
||||
// String that looks like an integer - convert to number
|
||||
params_obj = { id: parseInt(params, 10) };
|
||||
} else if (params && typeof params === 'object') {
|
||||
params_obj = params;
|
||||
} else if (params !== null && params !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user