-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Finishes #187354251] Update user password
[Finishes #187354251] Update user password [Finishes #187354251] Update user password
- Loading branch information
1 parent
7fecb8c
commit b9024c9
Showing
7 changed files
with
168 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
tag: | ||
description: API endpoints for user management | ||
paths: | ||
api/users: | ||
post: | ||
summary: Create a new user | ||
consumes: | ||
- application/json | ||
produces: | ||
- application/json | ||
parameters: | ||
- in: body | ||
name: user | ||
description: User data | ||
required: true | ||
schema: | ||
type: object | ||
properties: | ||
firstName: | ||
type: string | ||
lastName: | ||
type: string | ||
email: | ||
type: string | ||
password: | ||
type: string | ||
gender: | ||
type: string | ||
phoneNumber: | ||
type: string | ||
verified: | ||
type: boolean | ||
responses: | ||
'201': | ||
description: User Created Successfully | ||
schema: | ||
type: object | ||
properties: | ||
ok: | ||
type: boolean | ||
message: | ||
type: string | ||
'400': | ||
description: Bad Request | ||
schema: | ||
type: object | ||
properties: | ||
message: | ||
type: string | ||
'500': | ||
description: Internal Server Error | ||
schema: | ||
type: object | ||
properties: | ||
message: | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import express from 'express'; | ||
import { login } from '../controllers/authController'; | ||
import { login, updatePassword } from '../controllers/authController'; | ||
|
||
const router = express.Router(); | ||
|
||
// Route to login a user | ||
router.post('/login', login); | ||
router.put('/update-password', updatePassword); | ||
|
||
export default router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters