diff --git a/backend/apis/nodejs/src/routes/person_routes.js b/backend/apis/nodejs/src/routes/person_routes.js index 6cdc321..188693c 100644 --- a/backend/apis/nodejs/src/routes/person_routes.js +++ b/backend/apis/nodejs/src/routes/person_routes.js @@ -320,8 +320,8 @@ publicRoutes.get('/person/activation', confirmActivation); const protectedRoutes = express.Router(); // Routes requiring token protectedRoutes.use(jwtUtils.verifyToken); protectedRoutes.get('/person/myself', getMyself); -protectedRoutes.put('/person/', updatePerson); -protectedRoutes.delete('/person/delete', deletePerson); +protectedRoutes.put('/person', updatePerson); +protectedRoutes.delete('/person', deletePerson); // Exporting a function // means making a JavaScript function defined in one