-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
finshing fixing the auth #28
Conversation
@@ -29,6 +29,15 @@ export const doctor = (app) => { | |||
} | |||
}); | |||
|
|||
app.get('/check-doctor-req-user', async (req, res) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please follow REST conventions !!
@@ -17,6 +17,7 @@ export const admin = (app) => { | |||
|
|||
app.post('/add-admin', async (req, res) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
REST conventions
@@ -16,10 +16,24 @@ class DoctorRepository { | |||
|
|||
async addDoctorReq(req){ | |||
const { userData, speciality, hourlyRate, affiliation, educationalBackground } = req.body; | |||
const user = await DoctorModel.addUser(userData, speciality, hourlyRate, affiliation, educationalBackground); | |||
const user = await DoctoerReqModel.addUser(userData, speciality, hourlyRate, affiliation, educationalBackground); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the typo
Please make sure that you tested all the endpoints using postman. |
No description provided.