view config/routes.rb @ 491:cd84252dd0bf

Update link to source
author nanaya <me@nanaya.net>
date Tue, 17 Jan 2023 02:40:22 +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