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:02 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f21d36fd27d37df8ae8b0894065979593650f139
f21d36fd
1 parent
fa39674a
fix. medicine search request type : POST -> GET
Show 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 @
f21d36f
...
...
@@ -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 @
f21d36f
...
...
@@ -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