diff --git a/routes/auth.ts b/routes/auth.ts index c1074ff..6684049 100644 --- a/routes/auth.ts +++ b/routes/auth.ts @@ -5,8 +5,8 @@ import AuthValidator from '../validators/auth'; export default (app: Application) => { - app.get('/me', AuthMiddleware, AuthController.getMe); - app.post('/login', AuthValidator.login, AuthController.login); - app.post('/signup', AuthValidator.signup, AuthController.signup); - app.post('/logout', AuthMiddleware, AuthController.logout); + app.get('/auth/me', AuthMiddleware, AuthController.getMe); + app.post('/auth/login', AuthValidator.login, AuthController.login); + app.post('/auth/signup', AuthValidator.signup, AuthController.signup); + app.post('/auth/logout', AuthMiddleware, AuthController.logout); }; \ No newline at end of file