Serve webui on all unmatched routes (#1156)

with "/root" only "http:localhost:4567" opened the webui all other endpoints resulted in "Endpoint GET /endpoint not found"
This commit is contained in:
schroda
2024-11-18 03:11:40 +01:00
committed by GitHub
parent 6951b4b20d
commit 53c61bcb17

View File

@@ -43,7 +43,7 @@ object JavalinSetup {
Javalin.create { config ->
if (serverConfig.webUIEnabled.value) {
val serveWebUI = {
config.spaRoot.addFile("/root", applicationDirs.webUIRoot + "/index.html", Location.EXTERNAL)
config.spaRoot.addFile("/", applicationDirs.webUIRoot + "/index.html", Location.EXTERNAL)
}
WebInterfaceManager.setServeWebUI(serveWebUI)