How to expect a specific word after a route parameter in Node.js?

后端 未结 0 823
太阳男子
太阳男子 2020-12-05 20:48

Currently I have this route:

router.get(\'/:board/:threadId\', function(req, res, next) {
    // doing stuff
});

So the users go to /a/

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