view config/routes.rb @ 419:e34e0de34b65

Prevent creating stupid long misc fields
author nanaya <me@myconan.net>
date Thu, 17 Sep 2015 01:23:02 +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