How to return a JSON response in errorHandler Middleware in NodeJS using Express?

前端 未结 0 1930
说谎
说谎 2020-12-02 07:07

How to return a JSON response from errorHandler Middleware in NodeJS using Express. My code is:

UserController.js

const UserService =          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题