Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

Commit 4c33aa1

Browse files
Updated routes
1 parent ffdf297 commit 4c33aa1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

routes/auth.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import AuthValidator from '../validators/auth';
55

66

77
export default (app: Application) => {
8-
app.get('/me', AuthMiddleware, AuthController.getMe);
9-
app.post('/login', AuthValidator.login, AuthController.login);
10-
app.post('/signup', AuthValidator.signup, AuthController.signup);
11-
app.post('/logout', AuthMiddleware, AuthController.logout);
8+
app.get('/auth/me', AuthMiddleware, AuthController.getMe);
9+
app.post('/auth/login', AuthValidator.login, AuthController.login);
10+
app.post('/auth/signup', AuthValidator.signup, AuthController.signup);
11+
app.post('/auth/logout', AuthMiddleware, AuthController.logout);
1212
};

0 commit comments

Comments
 (0)