Skip to content

Commit

Permalink
[chore]: Added 404 handler to /personalities
Browse files Browse the repository at this point in the history
  • Loading branch information
raj-patra committed Jul 24, 2022
1 parent 3edea64 commit c0d97ee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions controllers/personalities.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ router.get('/:option', async(req, res)=>{
}
res.status(200).json(data);
} else {
res.status(404).json({
error: 'Endpoint does not exist'
});
res.status(404).json(constants[404]);
}
});

Expand Down

0 comments on commit c0d97ee

Please sign in to comment.