Fix reloading

main
Kevin Belisle 2021-07-08 23:10:20 -04:00
parent f6e6b90d8d
commit 4aff34926f
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ fun initApiServer(apiServerPort: Int, database: Database) {
Javalin.create { config ->
config.enableCorsForAllOrigins()
config.addStaticFiles("spa")
config.addSinglePageRoot("/", "spa")
config.addSinglePageRoot("", "spa/index.html")
config.enforceSsl = false
config.ignoreTrailingSlashes = true
}