Next JS - API Routes - Default error handling like Express.js

后端 未结 0 1036
借酒劲吻你
借酒劲吻你 2021-01-07 17:45

I\'m using the API routes in NextJS and I feel there\'s lots of code duplication at least for default errors where I\'m just setting a status code and a message.

Is t

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