From bc6bac186fbc6fd1016950cde3c59052e9c44a54 Mon Sep 17 00:00:00 2001 From: rca Date: Sun, 16 Jun 2024 16:57:45 +0900 Subject: [PATCH] fix/typo --- src/routers/debugRouter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) => {