mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2025-01-13 01:09:09 +01:00
fix SPA urls
This commit is contained in:
parent
a3b17365b7
commit
5cbb2a0481
@ -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.")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user