Mercurial > zeropaste
diff 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 |
line wrap: on
line diff
--- a/config/routes.rb Thu Oct 04 10:09:11 2012 +0700 +++ b/config/routes.rb Thu Oct 04 10:20:19 2012 +0700 @@ -1,5 +1,5 @@ Zeropaste::Application.routes.draw do resources :pastes, :only => [:show, :create], :path => '/' - post 'pastes' => 'pastes#create', :format => [:json, :xml] + post 'pastes' => 'pastes#create', :format => [:json, :xml, :txt] root :to => 'pastes#new' end