updated system paths and arm-uclibc toolchain paths #17
No files matched your search
@@ -17,11 +17,11 @@ OpenRouter::OpenRouter()
|
|||||||
this->srv.Post("/api/settings/restore", api::settings::restore);
|
this->srv.Post("/api/settings/restore", api::settings::restore);
|
||||||
this->srv.Post("/api/settings/restore/defaults", api::settings::restore_defaults);
|
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__
|
#ifdef __linux__
|
||||||
this->srv.Get("/api/uptime", api::system::get_uptime);
|
this->srv.Get("/api/system/uptime", api::system::get_uptime);
|
||||||
#endif // __linux__
|
#endif // __linux__
|
||||||
|
|
||||||
this->srv.Options("/(.*)", api::security::set_cors_headers);
|
this->srv.Options("/(.*)", api::security::set_cors_headers);
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ const routes = {
|
|||||||
settings_restore: () => [host, prefix, 'settings', 'restore'].join('/'),
|
settings_restore: () => [host, prefix, 'settings', 'restore'].join('/'),
|
||||||
restore_defaults: () => [host, prefix, 'settings', 'restore', 'defaults'].join('/'),
|
restore_defaults: () => [host, prefix, 'settings', 'restore', 'defaults'].join('/'),
|
||||||
|
|
||||||
reboot: () => [host, prefix, 'reboot'].join('/'),
|
reboot: () => [host, prefix, 'system', 'reboot'].join('/'),
|
||||||
syslog: () => [host, prefix, 'syslog'].join('/'),
|
syslog: () => [host, prefix, 'system', 'syslog'].join('/'),
|
||||||
uptime: () => [host, prefix, 'uptime'].join('/'),
|
uptime: () => [host, prefix, 'system', 'uptime'].join('/'),
|
||||||
}
|
}
|
||||||
@@ -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++)
|
||||||
Reference in new issue
Block a user