Showing
3 changed files
with
3 additions
and
3 deletions
... | @@ -63,7 +63,7 @@ exports.getPatientDetail = async ctx => { | ... | @@ -63,7 +63,7 @@ exports.getPatientDetail = async ctx => { |
63 | return; | 63 | return; |
64 | } | 64 | } |
65 | 65 | ||
66 | - const { patientId } = ctx.request.body; | 66 | + const { patientId } = ctx.params; |
67 | const patient = await User.findByUserId(patientId); | 67 | const patient = await User.findByUserId(patientId); |
68 | if(!patient || patient.useYn !== 'Y') { | 68 | if(!patient || patient.useYn !== 'Y') { |
69 | ctx.status = 404; | 69 | ctx.status = 404; | ... | ... |
... | @@ -17,7 +17,7 @@ doctor.get('/patient', doctorCtrl.getPatientList); | ... | @@ -17,7 +17,7 @@ doctor.get('/patient', doctorCtrl.getPatientList); |
17 | * url : http://localhost:4000/doctor/patient/:patientId | 17 | * url : http://localhost:4000/doctor/patient/:patientId |
18 | * return : patient Detail | 18 | * return : patient Detail |
19 | */ | 19 | */ |
20 | -doctor.get('/patient/detail', doctorCtrl.getPatientDetail); | 20 | +doctor.get('/patient/:patientId', doctorCtrl.getPatientDetail); |
21 | 21 | ||
22 | /** | 22 | /** |
23 | * 현재 로그인한 유저(의사)의 관리 약병 상세 정보를 가져옴 | 23 | * 현재 로그인한 유저(의사)의 관리 약병 상세 정보를 가져옴 | ... | ... |
... | @@ -26,7 +26,7 @@ user.get('/doctorrequest', userCtrl.viewAllDoctorRegister); | ... | @@ -26,7 +26,7 @@ user.get('/doctorrequest', userCtrl.viewAllDoctorRegister); |
26 | * url : http://localhost:4000/api/user/doctorrequest/:doctorId | 26 | * url : http://localhost:4000/api/user/doctorrequest/:doctorId |
27 | * return : null | 27 | * return : null |
28 | */ | 28 | */ |
29 | -user.post('/doctorrequest/accept', userCtrl.acceptDoctorRegister); | 29 | +user.post('/doctorrequest', userCtrl.acceptDoctorRegister); |
30 | 30 | ||
31 | 31 | ||
32 | module.exports = user; | 32 | module.exports = user; | ... | ... |
-
Please register or login to post a comment