-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathroutes.rb
44 lines (40 loc) · 841 Bytes
/
routes.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# frozen_string_literal: true
RailsWorkflow::Engine.routes.draw do
resources :operations, only: %i[index show] do
collection do
get :complete
get :skip
get :postpone
get :cancel
get :navigate_to
end
member do
get :continue
put :pickup
end
end
resources :processes, except: [:destroy] do
resources :errors, only: [:retry] do
member do
put :retry
end
end
resources :operations, except: %i[create update destroy] do
resources :errors, only: [:retry] do
member do
put :retry
end
end
end
end
resources :process_templates, path: 'config' do
resources :operation_templates
member do
get :export
end
collection do
post :upload
end
end
root to: 'operations#index'
end