Skip to content

Instantly share code, notes, and snippets.

View AlexBedley's full-sized avatar

Alex Bedley AlexBedley

View GitHub Profile
@AlexBedley
AlexBedley / squirrels
Last active June 12, 2024 20:55
ship it squirrels
![](http://dougbelshaw.com/blog/wp-content/uploads/2013/10/ship-it-squirrel.jpg)
![](http://shipitsquirrel.github.io/images/ship%20it%20squirrel.png)
@AlexBedley
AlexBedley / main.js
Created January 5, 2017 18:25
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');