-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Easy10 points reward10 points reward
Description
Description
New users should first signup. Your task is to implement a route to signup the new user. The details of new user should be added to database.
Difficult
- Easy
- 10 Points
API Endpoint
POST http://localhost:3000/auth/signup
Controller
/controllers/auth/signup.js
Request Body
firstNamelastNameemailpassword
Response
{
status : 200,
message : "User signed up successfully",
user : {
firstName : "Jhon",
lastName : "Doe",
email : "jhon@example.com",
password : "adsfsjkavidfmnasdfjklasdfnmdavkjadsf23123adsf",
}
}
Note
The password of the users should be hashed using bcryptjs
Metadata
Metadata
Assignees
Labels
Easy10 points reward10 points reward