From 4f6f59f76df9707f98ea8de5d8a79fe16b06c0bb Mon Sep 17 00:00:00 2001 From: djmil Date: Fri, 1 Dec 2023 22:49:13 +0100 Subject: [PATCH] [prod] Static routing fix --- .../src/main/java/djmil/cordacheckers/ReactAppController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/djmil/cordacheckers/ReactAppController.java b/backend/src/main/java/djmil/cordacheckers/ReactAppController.java index d030f23..d30b76d 100644 --- a/backend/src/main/java/djmil/cordacheckers/ReactAppController.java +++ b/backend/src/main/java/djmil/cordacheckers/ReactAppController.java @@ -11,7 +11,7 @@ public class ReactAppController { // This controller simply redirects all UI related routes // to index.html, allowing react and react-router to work its magic - @GetMapping(value = { "/", "/games/*","/about","/leaderboard" }) + @GetMapping(value = { "", "/", "/games", "/games/new", "/games/proposal", "/games/active", "/games/archive", "/about","/leaderboard" }) @PutMapping("/error") public String getIndex(HttpServletRequest inRequest) { return "/index.html";