Skip to content

Instantly share code, notes, and snippets.

@bjartwolf
Created March 8, 2013 09:17
Show Gist options
  • Save bjartwolf/5115218 to your computer and use it in GitHub Desktop.
Save bjartwolf/5115218 to your computer and use it in GitHub Desktop.
routes
app.get('/_api/:entitytype', ensureLoggedIn('/authenticate/login'), function (req,res) {
// do magic
});
app.post('/_api/:entitytype', ensureLoggedIn('/authenticate/login'), function (req,res) {
// do magic
});
app.put('/_api/:entitytype/:id', ensureLoggedIn('/authenticate/login'), function (req,res) {
// do magic
});
app.delete('/_api/:entitytype/:id', ensureLoggedIn('/authenticate/login'), function (req,res) {
// do magic
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment