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:25:55 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7909f7ab967ce6633a25a83399bd506087b5bffe
7909f7ab
1 parent
852252a8
feat. server api url change -> restful
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 @
7909f7a
...
...
@@ -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 @
7909f7a
...
...
@@ -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 @
7909f7a
...
...
@@ -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