Validate a header parameter with Joi, nodejs?

后端 未结 0 1118
无人共我
无人共我 2020-12-02 18:00

I want to check one parameter (docsLimit in this case) of a header of a HTTP request. So i did this:

const {
  celebrate,
  Joi,
} = require(\'celebrate\');
c         


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