comparison config/routes.rb @ 65:1787e1fd3d16

Allow posting pastes using json/xml.
author Edho Arief <edho@myconan.net>
date Thu, 04 Oct 2012 10:09:11 +0700
parents a81fb558f954
children e0817b84c01b
comparison
equal deleted inserted replaced
64:04164da6c12c 65:1787e1fd3d16
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], :path => '/'
3 post 'pastes' => 'pastes#create', :format => [:json, :xml]
3 root :to => 'pastes#new' 4 root :to => 'pastes#new'
4 end 5 end