박권수

fix. medicine search request type : POST -> GET

......@@ -9,7 +9,7 @@ const medicine = new Router();
* url : http://localhost:4000/api/medicine
* return : medicine List(json 타입의 List)
*/
medicine.post('/', medicineCtrl.medicineSearch);
medicine.get('/', medicineCtrl.medicineSearch);
/**
* 약 검색 후 검색 대상 가져오기
......
......@@ -8,7 +8,7 @@ exports.medicineSearch = async(ctx) => {
return;
}
const { keyword } = ctx.request.body;
const { keyword } = ctx.query;
const medicineList = await Medicine.findByKeyword(keyword);
......