fix(mikrotikConfigRoutes): update script execution command to use the correct REST API endpoint for running scripts
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 2m3s
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 2m3s
This commit is contained in:
@@ -295,8 +295,8 @@ async function runScript(req, res) {
|
||||
}
|
||||
|
||||
const client = createRosClient(creds);
|
||||
// /rest/execute — выполнение произвольной команды (как в CLI)
|
||||
await client.command('execute', { script: `/system script run ${script}` });
|
||||
// /rest/system/script/run — запуск скрипта по имени (number или .id)
|
||||
await client.command('system/script/run', { number: script });
|
||||
|
||||
return sendOk(res, { ok: true, message: `Скрипт ${script} запущен` });
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user