view config/routes.rb @ 474:389d2f995010

Update to bundler 2
author nanaya <me@nanaya.pro>
date Thu, 30 Apr 2020 03:54:21 +0900
parents 68eb23b52864
children d2ef59c9a4b4
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