added static files paths in config file
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Has been cancelled

This commit is contained in:
wt committed 2025-02-11 09:33:56 +07:00
1 parent 6e85d8e922
commit 8e04c872d4
2 files changed
+11 -11

No files matched your search

+8 -8
View File
@@ -10,15 +10,10 @@
{ {
"domain": "openrouter.local.com", "domain": "openrouter.local.com",
"ip": "192.168.200.1" "ip": "192.168.200.1"
},
{
"domain": "asdf",
"ip": "1.2.3.4"
} }
], ],
"servers": [ "servers": [
"8.8.8.8", "8.8.8.8"
"1.2.3.4"
] ]
}, },
"ftp": { "ftp": {
@@ -35,13 +30,18 @@
}, },
"telnet": { "telnet": {
"enabled": false, "enabled": false,
"port": 25 "port": 23
}, },
"wifi": { "wifi": {
"channel": 6, "channel": 6,
"enabled": false, "enabled": false,
"name": "OpenRouterWifi", "name": "OpenRouterWifi",
"password": "Simba28082020" "password": "OpenRouterPassword"
} }
},
"static": {
"css": "../src/web/css",
"js": "../src/web/js",
"root": "../src/web"
} }
} }
+3 -3
View File
@@ -51,9 +51,9 @@ OpenRouter::OpenRouter()
this->srv.Options("/(.*)", api::security::set_cors_headers); this->srv.Options("/(.*)", api::security::set_cors_headers);
this->srv.set_mount_point("/", "../src/web"); this->srv.set_mount_point("/", config::config.getConfig()["static"]["root"]);
this->srv.set_mount_point("/js", "../src/web/js"); this->srv.set_mount_point("/js", config::config.getConfig()["static"]["js"]);
this->srv.set_mount_point("/css", "../src/web/css"); this->srv.set_mount_point("/css", config::config.getConfig()["static"]["css"]);
} }
OpenRouter::~OpenRouter() = default; OpenRouter::~OpenRouter() = default;