6087: Add big-manifest tests, with some finer-grained performance numbers on stderr.
[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   resources :nodes
16   resources :humans
17   resources :traits
18   resources :api_client_authorizations
19   resources :virtual_machines
20   resources :authorized_keys
21   resources :job_tasks
22   resources :jobs do
23     post 'cancel', :on => :member
24     get 'logs', :on => :member
25   end
26   resources :repositories do
27     post 'share_with', on: :member
28   end
29   # {format: false} prevents rails from treating "foo.png" as foo?format=png
30   get '/repositories/:id/tree/:commit' => 'repositories#show_tree'
31   get '/repositories/:id/tree/:commit/*path' => 'repositories#show_tree', as: :show_repository_tree, format: false
32   get '/repositories/:id/blob/:commit/*path' => 'repositories#show_blob', as: :show_repository_blob, format: false
33   get '/repositories/:id/commit/:commit' => 'repositories#show_commit', as: :show_repository_commit
34   match '/logout' => 'sessions#destroy', via: [:get, :post]
35   get '/logged_out' => 'sessions#index'
36   resources :users do
37     get 'choose', :on => :collection
38     get 'home', :on => :member
39     get 'welcome', :on => :collection
40     get 'inactive', :on => :collection
41     get 'activity', :on => :collection
42     get 'storage', :on => :collection
43     post 'sudo', :on => :member
44     post 'unsetup', :on => :member
45     get 'setup_popup', :on => :member
46     get 'profile', :on => :member
47     post 'request_shell_access', :on => :member
48   end
49   get '/manage_account' => 'users#manage_account'
50   get "/add_ssh_key_popup" => 'users#add_ssh_key_popup', :as => :add_ssh_key_popup
51   get "/add_ssh_key" => 'users#add_ssh_key', :as => :add_ssh_key
52   resources :logs
53   resources :factory_jobs
54   resources :uploaded_datasets
55   resources :groups do
56     get 'choose', on: :collection
57   end
58   resources :specimens
59   resources :pipeline_templates do
60     get 'choose', on: :collection
61   end
62   resources :pipeline_instances do
63     get 'compare', on: :collection
64     post 'copy', on: :member
65   end
66   resources :links
67   get '/collections/graph' => 'collections#graph'
68   resources :collections do
69     post 'set_persistent', on: :member
70     get 'sharing_popup', :on => :member
71     post 'share', :on => :member
72     post 'unshare', :on => :member
73     get 'choose', on: :collection
74   end
75   get('/collections/download/:uuid/:reader_token/*file' => 'collections#show_file',
76       format: false)
77   get '/collections/download/:uuid/:reader_token' => 'collections#show_file_links'
78   get '/collections/:uuid/*file' => 'collections#show_file', :format => false
79   resources :projects do
80     match 'remove/:item_uuid', on: :member, via: :delete, action: :remove_item
81     match 'remove_items', on: :member, via: :delete, action: :remove_items
82     get 'choose', on: :collection
83     post 'share_with', on: :member
84     get 'tab_counts', on: :member
85   end
86   resources :search do
87     get 'choose', :on => :collection
88   end
89
90   post 'actions' => 'actions#post'
91   get 'actions' => 'actions#show'
92   get 'websockets' => 'websocket#index'
93   post "combine_selected" => 'actions#combine_selected_files_into_collection'
94
95   root :to => 'projects#index'
96
97   # Send unroutable requests to an arbitrary controller
98   # (ends up at ApplicationController#render_not_found)
99   match '*a', to: 'links#render_not_found', via: [:get, :post]
100 end