Wednesday, 15 March 2017

Parenthesis around route path

I found this piece of code in a project using kraken and express

module.exports = function (router) {
    router.get('(/)', .....);
    router.get('(/nfc/read)', .....);
}

and I don't get why there are parenthesis around the routes paths.

Does it change something ? I can't find anything about it on the documentation of express and kraken. In the rest of the whole project all the other routes are normal, without parenthesis.



via Gatoyu

No comments:

Post a Comment