This commit is contained in:
parent
8f93e1ab7d
commit
a79e2186a2
|
@ -60,8 +60,8 @@ usersRouter.post('/register', async (req: Request, res: Response) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// POST /users/activate
|
// GET /users/activate
|
||||||
usersRouter.post('/activate', async (req: Request, res: Response) => {
|
usersRouter.get('/activate', async (req: Request, res: Response) => {
|
||||||
try {
|
try {
|
||||||
const userId: number = parseInt(req.query.id as string ?? '-1', 10);
|
const userId: number = parseInt(req.query.id as string ?? '-1', 10);
|
||||||
const token: string = req.query.token as string ?? '';
|
const token: string = req.query.token as string ?? '';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user