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-09-13 16:26:19 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
d3bfcd19f466a038639280cbb4c52d79c10abd75
d3bfcd19
2 parents
f62a875d
f21d36fd
Merge branch 'server' into web
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
server/src/api/medicine/index.js
server/src/api/medicine/medicine.ctrl.js
server/src/api/medicine/index.js
View file @
d3bfcd1
...
...
@@ -9,7 +9,7 @@ const medicine = new Router();
* url : http://localhost:4000/api/medicine
* return : medicine List(json 타입의 List)
*/
medicine
.
pos
t
(
'/'
,
medicineCtrl
.
medicineSearch
);
medicine
.
ge
t
(
'/'
,
medicineCtrl
.
medicineSearch
);
/**
* 약 검색 후 검색 대상 가져오기
...
...
server/src/api/medicine/medicine.ctrl.js
View file @
d3bfcd1
...
...
@@ -8,7 +8,7 @@ exports.medicineSearch = async(ctx) => {
return
;
}
const
{
keyword
}
=
ctx
.
request
.
bod
y
;
const
{
keyword
}
=
ctx
.
quer
y
;
const
medicineList
=
await
Medicine
.
findByKeyword
(
keyword
);
...
...
Please
register
or
login
to post a comment