Skip to content

Commit f22c038

Browse files
committed
updated express reqs change to router paths
1 parent 506921f commit f22c038

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

client/src/Routes.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export default function AppRoutes() {
107107
<Route path="admin" element={<AdminWrapper />}>
108108
<Route path="profile/:id" element={<Profile />} />
109109
<Route path="register" element={<Register />} />
110-
<Route path="confirm{/:token}" element={<ConfirmEmail />} />
110+
<Route path="confirm/:token" element={<ConfirmEmail />} />
111111
<Route path="login{/:email}" element={<Login />} />
112112
<Route
113113
path="forgotpassword{/:email}"
@@ -120,7 +120,7 @@ export default function AppRoutes() {
120120
<Route path="resetPassword/:token" element={<ResetPassword />} />
121121

122122
<Route
123-
path="organizationedit{/:id}"
123+
path="organizationedit/:id"
124124
element={
125125
<PrivateRoute
126126
roles={["isAdmin", "isDataEntry", "isCoordinator"]}

server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ app.use(express.static("public"));
6969
// page, so requests that don't match any of the above are
7070
// assumed to be for react pages.
7171
if (process.env.NODE_ENV === "production") {
72-
app.get("*", (req, res) => {
72+
app.get("/*splat", (req, res) => {
7373
res.sendFile(path.join(__dirname + "/client/build/index.html"));
7474
});
7575
}

0 commit comments

Comments
 (0)