Skip to content

Instantly share code, notes, and snippets.

@swannodette
Created September 27, 2009 20:04
Show Gist options
  • Save swannodette/194972 to your computer and use it in GitHub Desktop.
Save swannodette/194972 to your computer and use it in GitHub Desktop.
this.allShifts = new SSResource("AllShifts", {
routes:{ create: {resource:'shift', id:"*"},
read: {resource:'shifts'},
update: {resource:'shift', id:"*"},
'delete': {resource:'shift', id:"*"}},
bindings: [{
match:[{resource:"shift", action:"favorite"},
{resource:"shift", action:"unfavorite"},
{resource:"shift", action:"publish"},
{resource:"shift", action:"unpublish"},
{resource:"shift", action:"comment"}],
handlers: [SSResource.update]
}],
delegate: this.PublishPane,
views: [this.AllShiftsListView]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment