# HG changeset patch # User Edho Arief # Date 1349320151 -25200 # Node ID 1787e1fd3d167842b83488e566dccba50b321ae7 # Parent 04164da6c12cdfad12f009a642149de94c365141 Allow posting pastes using json/xml. diff -r 04164da6c12c -r 1787e1fd3d16 config/routes.rb --- a/config/routes.rb Thu Oct 04 03:31:57 2012 -0700 +++ b/config/routes.rb Thu Oct 04 10:09:11 2012 +0700 @@ -1,4 +1,5 @@ Zeropaste::Application.routes.draw do resources :pastes, :only => [:show, :create], :path => '/' + post 'pastes' => 'pastes#create', :format => [:json, :xml] root :to => 'pastes#new' end