annotate config/routes.rb @ 220:183e8560a337

Update prettify to 2013/03/04.
author Edho Arief <edho@myconan.net>
date Sun, 12 May 2013 12:05:08 +0900
parents 953d284ec195
children 9fe8c29c27c4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1 Zeropaste::Application.routes.draw do
208
953d284ec195 Revamp the routing
Edho Arief <edho@myconan.net>
parents: 189
diff changeset
2 post '(pastes)' => 'pastes#create', format: /(html|json|xml|txt)/, as: 'pastes'
953d284ec195 Revamp the routing
Edho Arief <edho@myconan.net>
parents: 189
diff changeset
3 resources :pastes, only: [:show, :destroy], path: "/"
953d284ec195 Revamp the routing
Edho Arief <edho@myconan.net>
parents: 189
diff changeset
4 root to: 'pastes#new'
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
5 end