This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Belem Ferreiros, BEL | |
QB,Kamala Jenessa,32,2001,82,73,85,55,70,81,7.3,2 | |
QB,Dorla Antoinette,37,1995,78,60,88,77,99,52,9.5,3 | |
RB,Athalia Hailee,28,2007,60,65,99,58,80,68,1.3,0 | |
RB,Shawn Kyra,39,1996,72,80,64,100,66,95,3.6,5 | |
RB,Bay Ysabel,24,2010,65,57,70,50,98,69,1.3,1 | |
RB,Myfanwy Xochitl,35,2001,73,64,62,72,100,51,1.3,3 | |
WR,Naja Joanne,30,2005,93,82,64,59,61,92,2.6,0 | |
WR,Kiara Alberta,31,2005,63,100,68,73,53,76,2.4,1 | |
WR,Emer Clea,24,2011,52,72,60,69,73,51,1.8,0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const latest = 5; | |
module.exports = (req, res, next) => { | |
if (!req.params.version.match(/^v\d+$/)) { // /v1 or /v2 | |
return res.sendStatus(404); | |
} | |
req.version = parseInt(req.params.version.substr(1)); // 1 or 2 | |
if (!req.version || req.version > latest) { | |
return res.sendStatus(404); | |
} |