forked from Minecraft/Stonks
Fix reloading
parent
f6e6b90d8d
commit
4aff34926f
|
@ -25,7 +25,7 @@ fun initApiServer(apiServerPort: Int, database: Database) {
|
||||||
Javalin.create { config ->
|
Javalin.create { config ->
|
||||||
config.enableCorsForAllOrigins()
|
config.enableCorsForAllOrigins()
|
||||||
config.addStaticFiles("spa")
|
config.addStaticFiles("spa")
|
||||||
config.addSinglePageRoot("/", "spa")
|
config.addSinglePageRoot("", "spa/index.html")
|
||||||
config.enforceSsl = false
|
config.enforceSsl = false
|
||||||
config.ignoreTrailingSlashes = true
|
config.ignoreTrailingSlashes = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue