From 53c61bcb1784d702191d20e2f9239bab19b9ab33 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Mon, 18 Nov 2024 03:11:40 +0100 Subject: [PATCH] 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" --- .../src/main/kotlin/suwayomi/tachidesk/server/JavalinSetup.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/kotlin/suwayomi/tachidesk/server/JavalinSetup.kt b/server/src/main/kotlin/suwayomi/tachidesk/server/JavalinSetup.kt index ffb107df..5f857152 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/server/JavalinSetup.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/server/JavalinSetup.kt @@ -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)