Merge branch '2800-python-global-state' into 2800-pgs
[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   resources :nodes
14   resources :humans
15   resources :traits
16   resources :api_client_authorizations
17   resources :repositories
18   resources :virtual_machines
19   resources :authorized_keys
20   resources :job_tasks
21   resources :jobs do
22     post 'cancel', :on => :member
23   end
24   match '/logout' => 'sessions#destroy', via: [:get, :post]
25   get '/logged_out' => 'sessions#index'
26   resources :users do
27     get 'choose', :on => :collection
28     get 'home', :on => :member
29     get 'welcome', :on => :collection
30     get 'activity', :on => :collection
31     get 'storage', :on => :collection
32     post 'sudo', :on => :member
33     post 'unsetup', :on => :member
34     get 'setup_popup', :on => :member
35     get 'profile', :on => :member
36   end
37   get '/manage_account' => 'users#manage_account'
38   get "/add_ssh_key_popup" => 'users#add_ssh_key_popup', :as => :add_ssh_key_popup
39   get "/add_ssh_key" => 'users#add_ssh_key', :as => :add_ssh_key
40   resources :logs
41   resources :factory_jobs
42   resources :uploaded_datasets
43   resources :groups do
44     get 'choose', on: :collection
45   end
46   resources :specimens
47   resources :pipeline_templates do
48     get 'choose', on: :collection
49   end
50   resources :pipeline_instances do
51     get 'compare', on: :collection
52     post 'copy', on: :member
53   end
54   resources :links
55   get '/collections/graph' => 'collections#graph'
56   resources :collections do
57     post 'set_persistent', on: :member
58     get 'sharing_popup', :on => :member
59     post 'share', :on => :member
60     post 'unshare', :on => :member
61     get 'choose', on: :collection
62   end
63   get('/collections/download/:uuid/:reader_token/*file' => 'collections#show_file',
64       format: false)
65   get '/collections/download/:uuid/:reader_token' => 'collections#show_file_links'
66   get '/collections/:uuid/*file' => 'collections#show_file', :format => false
67   resources :projects do
68     match 'remove/:item_uuid', on: :member, via: :delete, action: :remove_item
69     match 'remove_items', on: :member, via: :delete, action: :remove_items
70     get 'move_items', on: :member, action: :move_items
71     get 'choose', on: :collection
72     post 'share_with', on: :member
73   end
74   resources :search do
75     get 'choose', :on => :collection
76   end
77
78   post 'actions' => 'actions#post'
79   get 'actions' => 'actions#show'
80   get 'websockets' => 'websocket#index'
81
82   root :to => 'projects#index'
83
84   # Send unroutable requests to an arbitrary controller
85   # (ends up at ApplicationController#render_not_found)
86   match '*a', to: 'links#render_not_found', via: [:get, :post]
87 end