Is there a need to use 'return' within an API after using the 'res' parameter? In the example below, does this usage do anything or is it completely useless?router.get('/:id', (req, res) => {let apiMsg = "msg from the api"res.status(200).json({ apiMsg });return;})
Submitted November 16, 2018 at 03:01AM by FunctionallyReactive
No comments:
Post a Comment