Skip to content

Commit

Permalink
Serve webui on all unmatched routes (#1156)
Browse files Browse the repository at this point in the history
with "/root" only "http:localhost:4567" opened the webui all other endpoints resulted in "Endpoint GET /endpoint not found"
  • Loading branch information
schroda authored Nov 18, 2024
1 parent 6951b4b commit 53c61bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 53c61bc

Please sign in to comment.