annotate config/routes.rb @ 292:207853e26088

Add test back.
author edogawaconan <me@myconan.net>
date Wed, 16 Oct 2013 14:06:01 +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