annotate config/routes.rb @ 208:953d284ec195

Revamp the routing
author Edho Arief <edho@myconan.net>
date Sat, 11 May 2013 22:39:06 +0900
parents b4b7a29b70f6
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