Fix activation endpoint HTTP method
All checks were successful
Jenkins Production Deployment

This commit is contained in:
Patrick Müller 2023-12-30 22:55:40 +01:00
parent 8f93e1ab7d
commit a79e2186a2
Signed by: Paddy
GPG Key ID: D10B5E2CFD8E7C6D

View File

@ -60,8 +60,8 @@ usersRouter.post('/register', async (req: Request, res: Response) => {
}
});
// POST /users/activate
usersRouter.post('/activate', async (req: Request, res: Response) => {
// GET /users/activate
usersRouter.get('/activate', async (req: Request, res: Response) => {
try {
const userId: number = parseInt(req.query.id as string ?? '-1', 10);
const token: string = req.query.token as string ?? '';