Skip to content

Instantly share code, notes, and snippets.

@AlexBedley
Created January 5, 2017 18:25
Show Gist options
  • Save AlexBedley/95cc950855350c93b25154fcf941d43f to your computer and use it in GitHub Desktop.
Save AlexBedley/95cc950855350c93b25154fcf941d43f to your computer and use it in GitHub Desktop.
Spaces in a getsandbox url breaks route parameters
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