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:
root
2025-12-23 09:18:10 +00:00
parent 2899ae826b
commit c7a2ec94ab
104 changed files with 293 additions and 144 deletions

View File

@@ -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) {