Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
RIT_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박권수
2021-08-16 23:26:01 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
2889be62d0b968fedbcbf0622b98b322aa8e0341
2889be62
2 parents
4171437c
7909f7ab
Merge branch 'server' into web
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
server/src/api/doctor/doctor.ctrl.js
server/src/api/doctor/index.js
server/src/api/user/index.js
server/src/api/doctor/doctor.ctrl.js
View file @
2889be6
...
...
@@ -63,7 +63,7 @@ exports.getPatientDetail = async ctx => {
return
;
}
const
{
patientId
}
=
ctx
.
request
.
body
;
const
{
patientId
}
=
ctx
.
params
;
const
patient
=
await
User
.
findByUserId
(
patientId
);
if
(
!
patient
||
patient
.
useYn
!==
'Y'
)
{
ctx
.
status
=
404
;
...
...
server/src/api/doctor/index.js
View file @
2889be6
...
...
@@ -17,7 +17,7 @@ doctor.get('/patient', doctorCtrl.getPatientList);
* url : http://localhost:4000/doctor/patient/:patientId
* return : patient Detail
*/
doctor
.
get
(
'/patient/
detail
'
,
doctorCtrl
.
getPatientDetail
);
doctor
.
get
(
'/patient/
:patientId
'
,
doctorCtrl
.
getPatientDetail
);
/**
* 현재 로그인한 유저(의사)의 관리 약병 상세 정보를 가져옴
...
...
server/src/api/user/index.js
View file @
2889be6
...
...
@@ -26,7 +26,7 @@ user.get('/doctorrequest', userCtrl.viewAllDoctorRegister);
* url : http://localhost:4000/api/user/doctorrequest/:doctorId
* return : null
*/
user
.
post
(
'/doctorrequest
/accept
'
,
userCtrl
.
acceptDoctorRegister
);
user
.
post
(
'/doctorrequest'
,
userCtrl
.
acceptDoctorRegister
);
module
.
exports
=
user
;
...
...
Please
register
or
login
to post a comment