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-05-24 14:08:22 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
38074ce3b577acd5f3814c774003caccade38b90
38074ce3
1 parent
4e14abbf
feat. 404 status exception
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
server/src/api/medicine/medicine.ctrl.js
server/src/api/medicine/medicine.ctrl.js
View file @
38074ce
...
...
@@ -21,11 +21,13 @@ exports.medicineSearch = async(ctx) => {
else
if
(
target
&&
target
!==
''
&&
target
!==
undefined
)
result
=
await
medicineSearch_ByTarget
(
target
);
ctx
.
status
=
200
;
ctx
.
body
=
{
totalItem
:
result
.
length
,
result
if
(
!
result
.
length
)
{
ctx
.
status
=
404
;
return
;
}
ctx
.
status
=
200
;
ctx
.
body
=
result
;
}
exports
.
medicineGet
=
async
(
ctx
)
=>
{
...
...
Please
register
or
login
to post a comment