view config/routes.rb @ 442:1fc5ddcde386

Some refactors
author nanaya <me@myconan.net>
date Thu, 10 Nov 2016 21:58:25 +0900
parents 68eb23b52864
children
line wrap: on
line source

Rails.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