fix SPA urls
This commit is contained in:
@@ -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.")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user