From 5cbb2a048116297c1eab02d4f0f959c8efc96232 Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Fri, 22 Jan 2021 02:33:41 +0330 Subject: [PATCH] fix SPA urls --- server/src/main/kotlin/ir/armor/tachidesk/Main.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/main/kotlin/ir/armor/tachidesk/Main.kt b/server/src/main/kotlin/ir/armor/tachidesk/Main.kt index a10d0db..21c6993 100644 --- a/server/src/main/kotlin/ir/armor/tachidesk/Main.kt +++ b/server/src/main/kotlin/ir/armor/tachidesk/Main.kt @@ -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.") }