mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-06-08 15:24:00 +02:00
no 404 on refresh
This commit is contained in:
@@ -70,9 +70,12 @@ object ShotgunServer {
|
||||
)
|
||||
}
|
||||
|
||||
val spaRoutes = pathSingleSlash {
|
||||
val spaRoutes = pathEndOrSingleSlash {
|
||||
getFromFile("../webapp/dist/index.html")
|
||||
} ~ getFromDirectory("../webapp/dist")
|
||||
} ~ getFromDirectory("../webapp/dist") ~
|
||||
path(Remaining) { _ =>
|
||||
getFromFile("../webapp/dist/index.html")
|
||||
}
|
||||
|
||||
val routes = handleRejections(rejectionHandler) {
|
||||
cors(corsSettings) {
|
||||
|
||||
Reference in New Issue
Block a user