Created
January 5, 2017 18:25
-
-
Save AlexBedley/95cc950855350c93b25154fcf941d43f to your computer and use it in GitHub Desktop.
Spaces in a getsandbox url breaks route parameters
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
Sandbox.define('/whatever/{id}/hello', 'GET', function(req, res) { | |
res.type('application/json'); | |
res.status(200); | |
res.json({id: req.params.id}); | |
}); | |
Sandbox.define('/whatever/{id}/hello world', 'GET', function(req, res) { | |
res.type('application/json'); | |
res.status(200); | |
res.json({id: req.params.id}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment