Mercurial > zeropaste
comparison config/routes.rb @ 189:b4b7a29b70f6
Initial work for paste deletion.
| author | Edho Arief <edho@myconan.net> |
|---|---|
| date | Sat, 23 Feb 2013 14:01:22 +0900 |
| parents | bb5f98459aac |
| children | 953d284ec195 |
comparison
equal
deleted
inserted
replaced
| 188:45ec309a3fa8 | 189:b4b7a29b70f6 |
|---|---|
| 1 Zeropaste::Application.routes.draw do | 1 Zeropaste::Application.routes.draw do |
| 2 resources :pastes, :only => [:show, :create], :path => '/' | 2 resources :pastes, :only => [:show, :create, :destroy], :path => '/' |
| 3 post 'pastes' => 'pastes#create', :format => /(json|xml|txt)/ | 3 post 'pastes' => 'pastes#create', :format => /(json|xml|txt)/ |
| 4 root :to => 'pastes#new' | 4 root :to => 'pastes#new' |
| 5 end | 5 end |
