Skip to content

Commit

Permalink
Merge pull request #8 from hariscs/minor-changes
Browse files Browse the repository at this point in the history
chore: added 'register' to register endpoint & changed req method to …
  • Loading branch information
hariscs authored Mar 9, 2024
2 parents c7c16cb + bd71602 commit 37c2cf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/api/src/routes/user_route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import { protect_route } from '@/middleware/auth_middleware'

//* @desc Create user
//? @access Public
router.post('/', validate_schema(USER_VALIDATION_SCHEMA), register_user)
router.post('/register', validate_schema(USER_VALIDATION_SCHEMA), register_user)

//* @desc Login user
//? @access Public
router.get('/login', validate_schema(USER_VALIDATION_SCHEMA), login_user)
router.post('/login', validate_schema(USER_VALIDATION_SCHEMA), login_user)

//* @desc Logout user
//? @access Public
Expand Down

0 comments on commit 37c2cf4

Please sign in to comment.