mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2025-12-10 06:42:07 +01:00
Ensure webui static resources folder exists before serving it (#1756)
When the webUI got opened before the setup was completed, the missing folder caused an exception and broke the javalin server. In that case, even after the webui setup completed, the server just returned the index.html for every path
This commit is contained in:
@@ -160,6 +160,8 @@ object WebInterfaceManager {
|
||||
return
|
||||
}
|
||||
|
||||
File(applicationDirs.webUIServe).mkdirs()
|
||||
|
||||
config.staticFiles.add { staticFiles ->
|
||||
if (ServerSubpath.isDefined()) staticFiles.hostedPath = ServerSubpath.normalized()
|
||||
// Use canonical path to avoid Jetty alias issues
|
||||
|
||||
Reference in New Issue
Block a user