Showing
2 changed files
with
2 additions
and
2 deletions
... | @@ -9,7 +9,7 @@ const medicine = new Router(); | ... | @@ -9,7 +9,7 @@ const medicine = new Router(); |
9 | * url : http://localhost:4000/api/medicine | 9 | * url : http://localhost:4000/api/medicine |
10 | * return : medicine List(json 타입의 List) | 10 | * return : medicine List(json 타입의 List) |
11 | */ | 11 | */ |
12 | -medicine.post('/', medicineCtrl.medicineSearch); | 12 | +medicine.get('/', medicineCtrl.medicineSearch); |
13 | 13 | ||
14 | /** | 14 | /** |
15 | * 약 검색 후 검색 대상 가져오기 | 15 | * 약 검색 후 검색 대상 가져오기 | ... | ... |
... | @@ -8,7 +8,7 @@ exports.medicineSearch = async(ctx) => { | ... | @@ -8,7 +8,7 @@ exports.medicineSearch = async(ctx) => { |
8 | return; | 8 | return; |
9 | } | 9 | } |
10 | 10 | ||
11 | - const { keyword } = ctx.request.body; | 11 | + const { keyword } = ctx.query; |
12 | 12 | ||
13 | const medicineList = await Medicine.findByKeyword(keyword); | 13 | const medicineList = await Medicine.findByKeyword(keyword); |
14 | 14 | ... | ... |
-
Please register or login to post a comment