Change DeletePerson endpoint name

This commit is contained in:
xfarrow 2024-03-06 09:00:02 +01:00
parent d9c3f6f55a
commit 94d6df0a49
1 changed files with 2 additions and 2 deletions

View File

@ -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