Mercurial > zeropaste
comparison 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 |
comparison
equal
deleted
inserted
replaced
207:ee7829c7c2a2 | 208:953d284ec195 |
---|---|
1 Zeropaste::Application.routes.draw do | 1 Zeropaste::Application.routes.draw do |
2 resources :pastes, :only => [:show, :create, :destroy], :path => '/' | 2 post '(pastes)' => 'pastes#create', format: /(html|json|xml|txt)/, as: 'pastes' |
3 post 'pastes' => 'pastes#create', :format => /(json|xml|txt)/ | 3 resources :pastes, only: [:show, :destroy], path: "/" |
4 root :to => 'pastes#new' | 4 root to: 'pastes#new' |
5 end | 5 end |