This commit is contained in:
parent
8f93e1ab7d
commit
a79e2186a2
|
@ -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 ?? '';
|
||||
|
|
Loading…
Reference in New Issue
Block a user