diff --git a/backend/src/main/java/djmil/cordacheckers/ReactAppController.java b/backend/src/main/java/djmil/cordacheckers/ReactAppController.java index d30b76d..5cfc464 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", "/games/new", "/games/proposal", "/games/active", "/games/archive", "/about","/leaderboard" }) + @GetMapping(value = { "", "/", "/games", "/games/*", "/about","/leaderboard" }) @PutMapping("/error") public String getIndex(HttpServletRequest inRequest) { return "/index.html"; diff --git a/webapp/.gitignore b/webapp/.gitignore index 4d29575..d3ff5fc 100644 --- a/webapp/.gitignore +++ b/webapp/.gitignore @@ -21,3 +21,5 @@ npm-debug.log* yarn-debug.log* yarn-error.log* + +package-lock.json \ No newline at end of file diff --git a/webapp/package.json b/webapp/package.json index 547219c..81c2f9a 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -9,7 +9,7 @@ "fsevents": "^2.3.3", "react": "^18.2.0", "react-dom": "^18.2.0", - "react-router-dom": "^6.16.0", + "react-router-dom": "^6.20.1", "react-scripts": "^5.0.1", "web-vitals": "^3.5.0" }, diff --git a/webapp/public/index.html b/webapp/public/index.html index ec6e3d2..4cb1350 100644 --- a/webapp/public/index.html +++ b/webapp/public/index.html @@ -9,7 +9,7 @@ name="description" content="Web site created using create-react-app" /> - +