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
2025-02-11 09:33:56 +07:00
parent 6e85d8e922
commit 8e04c872d4
2 changed files with 11 additions and 11 deletions
+8 -8
View File
@@ -10,15 +10,10 @@
{
"domain": "openrouter.local.com",
"ip": "192.168.200.1"
},
{
"domain": "asdf",
"ip": "1.2.3.4"
}
],
"servers": [
"8.8.8.8",
"1.2.3.4"
"8.8.8.8"
]
},
"ftp": {
@@ -35,13 +30,18 @@
},
"telnet": {
"enabled": false,
"port": 25
"port": 23
},
"wifi": {
"channel": 6,
"enabled": false,
"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.set_mount_point("/", "../src/web");
this->srv.set_mount_point("/js", "../src/web/js");
this->srv.set_mount_point("/css", "../src/web/css");
this->srv.set_mount_point("/", config::config.getConfig()["static"]["root"]);
this->srv.set_mount_point("/js", config::config.getConfig()["static"]["js"]);
this->srv.set_mount_point("/css", config::config.getConfig()["static"]["css"]);
}
OpenRouter::~OpenRouter() = default;