Skip to content

Instantly share code, notes, and snippets.

@gnab
Created June 26, 2010 12:57
Show Gist options
  • Save gnab/454034 to your computer and use it in GitHub Desktop.
Save gnab/454034 to your computer and use it in GitHub Desktop.
resources: {
'messages' : {
'list' : function(req, resp) { ... } // GET til /messages
'get' : function(req, resp, id) { ... } // GET til /messages/id
'save' : function(req, resp, id) { ... } // POST til /messages
'update' : function(req, resp, id) { ...} // POST til /messages/is
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment