resource 'posts/:id' do |id| get do # show post id end delete do # destroy post id end get :comments do # show this post's comments end end