blob: 19d6a03b67fe458a1d9ba27b0531da97c1ac8687 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
Rails.application.routes.draw do
resources :snippets
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
# Serve websocket cable requests in-process
# mount ActionCable.server => "/cable"
root to: "snippets#new"
post "/create" => "snippets#create"
put "/update" => "snippets#update"
get "/:id" => "snippets#show", constraints: { id: /[1-9][0-9]*/ }
match "*any" => "application#not_found", via: :all
end
|