Skip to content

Instantly share code, notes, and snippets.

@davglass
Created October 12, 2010 20:03
Show Gist options
  • Save davglass/622809 to your computer and use it in GitHub Desktop.
Save davglass/622809 to your computer and use it in GitHub Desktop.
var express = require('express'),
app = express.createServer();
app.enable('jsonp callback');
app.get('/jsonp', function(req, res) {
res.send({ foo: 'bar' });
});
/jsonp?callback=test
test({ foo: 'bar' });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment