diff --git a/src/OpenRouter/OpenRouter.cpp b/src/OpenRouter/OpenRouter.cpp index 588a9dc..ab33511 100644 --- a/src/OpenRouter/OpenRouter.cpp +++ b/src/OpenRouter/OpenRouter.cpp @@ -17,11 +17,11 @@ OpenRouter::OpenRouter() this->srv.Post("/api/settings/restore", api::settings::restore); this->srv.Post("/api/settings/restore/defaults", api::settings::restore_defaults); - this->srv.Post("/api/reboot", api::system::reboot); + this->srv.Post("/api/system/reboot", api::system::reboot); - this->srv.Get("/api/syslog", api::system::get_syslog); + this->srv.Get("/api/system/syslog", api::system::get_syslog); #ifdef __linux__ - this->srv.Get("/api/uptime", api::system::get_uptime); + this->srv.Get("/api/system/uptime", api::system::get_uptime); #endif // __linux__ this->srv.Options("/(.*)", api::security::set_cors_headers); diff --git a/src/web/js/routes.js b/src/web/js/routes.js index 499c56c..9cb37f4 100644 --- a/src/web/js/routes.js +++ b/src/web/js/routes.js @@ -14,7 +14,7 @@ const routes = { settings_restore: () => [host, prefix, 'settings', 'restore'].join('/'), restore_defaults: () => [host, prefix, 'settings', 'restore', 'defaults'].join('/'), - reboot: () => [host, prefix, 'reboot'].join('/'), - syslog: () => [host, prefix, 'syslog'].join('/'), - uptime: () => [host, prefix, 'uptime'].join('/'), + reboot: () => [host, prefix, 'system', 'reboot'].join('/'), + syslog: () => [host, prefix, 'system', 'syslog'].join('/'), + uptime: () => [host, prefix, 'system', 'uptime'].join('/'), } diff --git a/toolchain_files/arm_uclibc b/toolchain_files/arm_uclibc index 0f6d7b5..6afd8bf 100644 --- a/toolchain_files/arm_uclibc +++ b/toolchain_files/arm_uclibc @@ -1 +1 @@ -set(CMAKE_CXX_COMPILER /home/tola/Documents/linux/orangepipc/buildroot-2024.08.2/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-g++) +set(CMAKE_CXX_COMPILER arm-buildroot-linux-uclibcgnueabihf-g++)