Rest API - services and error handling

preview_player
Показать описание
In this video you'll see why services are beneficial inside of a NodeJS REST API's as well as how to handle global errors.

Support on Patreon:

----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

Why the try catch approach in the controller, is this a practice of returning "bad status codes" by throwing errors incase anything good is successful?

Khan-cbxx