annotate config/routes.rb @ 201:681bfba39449

Hopefully the last bit of mass assignment update.
author Edho Arief <edho@myconan.net>
date Wed, 08 May 2013 00:18:36 +0900
parents b4b7a29b70f6
children 953d284ec195
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
189
b4b7a29b70f6 Initial work for paste deletion.
Edho Arief <edho@myconan.net>
parents: 68
diff changeset
2 resources :pastes, :only => [:show, :create, :destroy], :path => '/'
68
bb5f98459aac Format check requires a regex, not an array.
Edho Arief <edho@myconan.net>
parents: 66
diff changeset
3 post 'pastes' => 'pastes#create', :format => /(json|xml|txt)/
4
23178d3de796 Slim controller (this app barely has any function)
Edho Arief <edho@myconan.net>
parents: 2
diff changeset
4 root :to => 'pastes#new'
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
5 end