Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
json instead of send
Browse files Browse the repository at this point in the history
  • Loading branch information
tigercosmos committed Aug 4, 2018
1 parent ffb0e74 commit 2283ae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/classify.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ app.post('/classify', async (req, res) => {
}

logger.info(`[${uuid}] return 200`);
return res.status(200).send(result);
return res.status(200).json(result);
})

module.exports = app;
module.exports = app;

0 comments on commit 2283ae7

Please sign in to comment.