comparison config/routes.rb @ 66:e0817b84c01b

Allow post in txt format.
author Edho Arief <edho@myconan.net>
date Thu, 04 Oct 2012 10:20:19 +0700
parents 1787e1fd3d16
children bb5f98459aac
comparison
equal deleted inserted replaced
65:1787e1fd3d16 66:e0817b84c01b
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 post 'pastes' => 'pastes#create', :format => [:json, :xml, :txt]
4 root :to => 'pastes#new' 4 root :to => 'pastes#new'
5 end 5 end