Merge branch 'master' into 5493-getting-started-modal
[arvados.git] / apps / workbench / config / routes.rb
1 ArvadosWorkbench::Application.routes.draw do
2   themes_for_rails
3
4   resources :keep_disks
5   resources :keep_services
6   resources :user_agreements do
7     post 'sign', on: :collection
8     get 'signatures', on: :collection
9   end
10   get '/user_agreements/signatures' => 'user_agreements#signatures'
11   get "users/setup_popup" => 'users#setup_popup', :as => :setup_user_popup
12   get "users/setup" => 'users#setup', :as => :setup_user
13   get "report_issue_popup" => 'actions#report_issue_popup', :as => :report_issue_popup
14   post "report_issue" => 'actions#report_issue', :as => :report_issue
15   get "getting_started_popup" => 'actions#getting_started_popup', :as => :getting_started_popup
16   resources :nodes
17   resources :humans
18   resources :traits
19   resources :api_client_authorizations
20   resources :virtual_machines
21   resources :authorized_keys
22   resources :job_tasks
23   resources :jobs do
24     post 'cancel', :on => :member
25     get 'logs', :on => :member
26   end
27   resources :repositories do
28     post 'share_with', on: :member
29   end
30   match '/logout' => 'sessions#destroy', via: [:get, :post]
31   get '/logged_out' => 'sessions#index'
32   resources :users do
33     get 'choose', :on => :collection
34     get 'home', :on => :member
35     get 'welcome', :on => :collection
36     get 'inactive', :on => :collection
37     get 'activity', :on => :collection
38     get 'storage', :on => :collection
39     post 'sudo', :on => :member
40     post 'unsetup', :on => :member
41     get 'setup_popup', :on => :member
42     get 'profile', :on => :member
43     post 'request_shell_access', :on => :member
44   end
45   get '/manage_account' => 'users#manage_account'
46   get "/add_ssh_key_popup" => 'users#add_ssh_key_popup', :as => :add_ssh_key_popup
47   get "/add_ssh_key" => 'users#add_ssh_key', :as => :add_ssh_key
48   resources :logs
49   resources :factory_jobs
50   resources :uploaded_datasets
51   resources :groups do
52     get 'choose', on: :collection
53   end
54   resources :specimens
55   resources :pipeline_templates do
56     get 'choose', on: :collection
57   end
58   resources :pipeline_instances do
59     get 'compare', on: :collection
60     post 'copy', on: :member
61   end
62   resources :links
63   get '/collections/graph' => 'collections#graph'
64   resources :collections do
65     post 'set_persistent', on: :member
66     get 'sharing_popup', :on => :member
67     post 'share', :on => :member
68     post 'unshare', :on => :member
69     get 'choose', on: :collection
70   end
71   get('/collections/download/:uuid/:reader_token/*file' => 'collections#show_file',
72       format: false)
73   get '/collections/download/:uuid/:reader_token' => 'collections#show_file_links'
74   get '/collections/:uuid/*file' => 'collections#show_file', :format => false
75   resources :projects do
76     match 'remove/:item_uuid', on: :member, via: :delete, action: :remove_item
77     match 'remove_items', on: :member, via: :delete, action: :remove_items
78     get 'choose', on: :collection
79     post 'share_with', on: :member
80     get 'tab_counts', on: :member
81   end
82   resources :search do
83     get 'choose', :on => :collection
84   end
85
86   post 'actions' => 'actions#post'
87   get 'actions' => 'actions#show'
88   get 'websockets' => 'websocket#index'
89   post "combine_selected" => 'actions#combine_selected_files_into_collection'
90
91   root :to => 'projects#index'
92
93   # Send unroutable requests to an arbitrary controller
94   # (ends up at ApplicationController#render_not_found)
95   match '*a', to: 'links#render_not_found', via: [:get, :post]
96 end