Skip to content

Instantly share code, notes, and snippets.

@apaleslimghost
Created July 9, 2014 11:29
Show Gist options
  • Save apaleslimghost/496133bf6ddae79e1bc8 to your computer and use it in GitHub Desktop.
Save apaleslimghost/496133bf6ddae79e1bc8 to your computer and use it in GitHub Desktop.
what resourceful routes look like in sodor
{root, post, put, delete} = require \sodor
module.exports =
index: root ->
new: ->
create: post root ->
show: root (id)->
edit: (id)->
update: put root (id)->
destroy: delete root (id)->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment