express js set request header Content-Type in middleware based on file extension?

后端 未结 0 592
南笙
南笙 2021-01-07 17:43

The end points of my API-application render data based on the request mime type. I have implementing express\' response.format() to distinguish between the req types.

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