Mercurial > zeropaste
view config/routes.rb @ 458:1c6a056269e6
RIP rubocop
author | nanaya <me@nanaya.pro> |
---|---|
date | Sat, 14 Apr 2018 04:19:29 +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