File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" ] }
Original file line number Diff line number Diff 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.
7171if ( 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}
You can’t perform that action at this time.
0 commit comments