Mercurial > zeropaste
view config/routes.rb @ 67:f7b7a39fb48c
Allow post in txt format pt. 2 (view and controller).
author | Edho Arief <edho@myconan.net> |
---|---|
date | Thu, 04 Oct 2012 10:20:58 +0700 |
parents | e0817b84c01b |
children | bb5f98459aac |
line wrap: on
line source
Zeropaste::Application.routes.draw do resources :pastes, :only => [:show, :create], :path => '/' post 'pastes' => 'pastes#create', :format => [:json, :xml, :txt] root :to => 'pastes#new' end