mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-03 19:04:39 -05:00
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:
@@ -43,7 +43,7 @@ object JavalinSetup {
|
|||||||
Javalin.create { config ->
|
Javalin.create { config ->
|
||||||
if (serverConfig.webUIEnabled.value) {
|
if (serverConfig.webUIEnabled.value) {
|
||||||
val serveWebUI = {
|
val serveWebUI = {
|
||||||
config.spaRoot.addFile("/root", applicationDirs.webUIRoot + "/index.html", Location.EXTERNAL)
|
config.spaRoot.addFile("/", applicationDirs.webUIRoot + "/index.html", Location.EXTERNAL)
|
||||||
}
|
}
|
||||||
WebInterfaceManager.setServeWebUI(serveWebUI)
|
WebInterfaceManager.setServeWebUI(serveWebUI)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user