Mercurial > zeropaste
view config/routes.rb @ 425:9369ad2f2ce8
Simplify logic
author | nanaya <me@myconan.net> |
---|---|
date | Mon, 26 Oct 2015 14:09:13 +0900 |
parents | 9fe8c29c27c4 |
children | 68eb23b52864 |
line wrap: on
line source
Zeropaste::Application.routes.draw do post "(pastes)" => "pastes#create", :format => /(html|json|xml|txt)/, :as => "pastes" resources :pastes, :only => [:show, :destroy], :path => "/" root :to => "pastes#new" end