I need to apply middleware for everyone excepte a few IPs, but I can't get req and res outside of route, how could I apply it?

后端 未结 0 1198
别跟我提以往
别跟我提以往 2021-01-05 04:17

Here is my express code:

        res.setHeader(\'Content-Type\', \'application/json\');
        if (req.query.uuid) {
            db.getPlayerByUUID(req.query         


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