mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 11:24:35 -05:00
fix SPA urls
This commit is contained in:
@@ -40,6 +40,7 @@ class Main {
|
|||||||
try {
|
try {
|
||||||
this::class.java.classLoader.getResource("/react/index.html")
|
this::class.java.classLoader.getResource("/react/index.html")
|
||||||
config.addStaticFiles("/react")
|
config.addStaticFiles("/react")
|
||||||
|
config.addSinglePageRoot("/","/react/index.html")
|
||||||
} catch (e: RuntimeException) {
|
} catch (e: RuntimeException) {
|
||||||
println("Warning: react build files are missing.")
|
println("Warning: react build files are missing.")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user