Created
August 15, 2008 02:25
-
-
Save dkubb/5524 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource 'posts/:id' do | |
get do |id| | |
# show post id | |
end | |
put do |id, post| | |
# change post id, with the body params in "post" | |
end | |
delete do |id| | |
# destroy post id | |
end | |
get 'comments' do |id| | |
# show this post's comments | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment