diff --git a/src/routers/debugRouter.ts b/src/routers/debugRouter.ts index 3e744c9..03214ea 100644 --- a/src/routers/debugRouter.ts +++ b/src/routers/debugRouter.ts @@ -8,14 +8,14 @@ router.get('/hello', (req: Request, res: Response) => { res.send('Hello, World!'); }); -router.post('bypassAuth', (req: Request, res: Response) => { +router.post('/bypassAuth', (req: Request, res: Response) => { const userId = req.body.userId; const token = issueTokenByUserId(userId); res.json({ token }); }); router.get('/protected', verifyToken,(req: Request, res: Response) => { - res.send('You are authorized to access this endpoint. user id: ' + req.body.userId); + res.send('You are authorized to access this endpoint.'); }); router.post('/echo', (req: Request, res: Response) => {