npm run dev
Using Postman

Url
<http://localhost:3000/api/v1/auth/signup>
Json Data ( Test Data )
{
"name": "Khalid Alam",
"email": "[email protected]",
"accountType" : "User",
"password": "12345",
"confirmPassword" : "12345"
}
Result
{
"success": true,
"message": "Account successfully created",
"data": {
"name": "Khalid Alam",
"email": "[email protected]",
"accountType": "User"
}
}
URL
<http://localhost:3000/api/v1/auth/login>
Test Data
{
"email": "[email protected]",
"password": "12345"
}
Result
{
"success": true,
"message": "User Login Success",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY4OWMyOGU4Y2MwNjVjOWNiYThhZjVhZiIsImVtYWlsIjoibWRraGFsaWRhbGFtMDAxQGdtYWlsLmNvbSIsImFjY291bnRUeXBlIjoiVXNlciIsIm5hbWUiOiJLaGFsaWQgQWxhbSIsImlhdCI6MTc1NTA2NDgyNiwiZXhwIjoxNzU1MDY4NDI2fQ.9gHNJQdB2hyej00DMVVTqo3dpPnxoBpsvtXntsgkIho",
"data": {
"name": "Khalid Alam",
"email": "[email protected]",
"accountType": "User"
}
}
URL
<http://localhost:3000/api/v1/auth//get-user/689c28e8cc065c9cba8af5af>