# HG changeset patch # User Edho Arief # Date 1349320819 -25200 # Node ID e0817b84c01b3f34f0b6eabab1328ef25050c192 # Parent 1787e1fd3d167842b83488e566dccba50b321ae7 Allow post in txt format. diff -r 1787e1fd3d16 -r e0817b84c01b config/routes.rb --- 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