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

Commit

Permalink
Updated routes
Browse files Browse the repository at this point in the history
  • Loading branch information
the-code-genin committed Jul 4, 2022
1 parent ffdf297 commit 4c33aa1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions routes/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

0 comments on commit 4c33aa1

Please sign in to comment.