blob: b547a664ffe7c58c7f29d5303646866f2f8a4c28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
Rails.application.routes.draw do
resources :snippets, only: [:new, :create, :update, :show], path: "", path_names: {
new: "",
create: "create",
update: ":id",
show: ":id"
}
post "results/run" => "results#run"
get "results/:id" => "results#show"
# 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
|