fix SPA urls

This commit is contained in:
Aria Moradi 2021-01-22 02:33:41 +03:30
parent a3b17365b7
commit 5cbb2a0481

View File

@ -40,6 +40,7 @@ class Main {
try {
this::class.java.classLoader.getResource("/react/index.html")
config.addStaticFiles("/react")
config.addSinglePageRoot("/","/react/index.html")
} catch (e: RuntimeException) {
println("Warning: react build files are missing.")
}