1 ArvadosWorkbench::Application.routes.draw do
5 resources :keep_services
6 resources :user_agreements do
7 post 'sign', on: :collection
8 get 'signatures', on: :collection
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
18 resources :api_client_authorizations
19 resources :virtual_machines
20 get '/virtual_machines/:id/webshell/:login' => 'virtual_machines#webshell', :as => :webshell_virtual_machine
21 resources :authorized_keys
24 post 'cancel', :on => :member
25 get 'logs', :on => :member
27 resources :repositories do
28 post 'share_with', on: :member
30 # {format: false} prevents rails from treating "foo.png" as foo?format=png
31 get '/repositories/:id/tree/:commit' => 'repositories#show_tree'
32 get '/repositories/:id/tree/:commit/*path' => 'repositories#show_tree', as: :show_repository_tree, format: false
33 get '/repositories/:id/blob/:commit/*path' => 'repositories#show_blob', as: :show_repository_blob, format: false
34 get '/repositories/:id/commit/:commit' => 'repositories#show_commit', as: :show_repository_commit
35 match '/logout' => 'sessions#destroy', via: [:get, :post]
36 get '/logged_out' => 'sessions#index'
38 get 'choose', :on => :collection
39 get 'home', :on => :member
40 get 'welcome', :on => :collection
41 get 'inactive', :on => :collection
42 get 'activity', :on => :collection
43 get 'storage', :on => :collection
44 post 'sudo', :on => :member
45 post 'unsetup', :on => :member
46 get 'setup_popup', :on => :member
47 get 'profile', :on => :member
48 post 'request_shell_access', :on => :member
50 get '/manage_account' => 'users#manage_account'
51 get "/add_ssh_key_popup" => 'users#add_ssh_key_popup', :as => :add_ssh_key_popup
52 get "/add_ssh_key" => 'users#add_ssh_key', :as => :add_ssh_key
54 resources :factory_jobs
55 resources :uploaded_datasets
57 get 'choose', on: :collection
60 resources :pipeline_templates do
61 get 'choose', on: :collection
63 resources :pipeline_instances do
64 get 'compare', on: :collection
65 post 'copy', on: :member
68 get '/collections/graph' => 'collections#graph'
69 resources :collections do
70 post 'set_persistent', on: :member
71 get 'sharing_popup', :on => :member
72 post 'share', :on => :member
73 post 'unshare', :on => :member
74 get 'choose', on: :collection
76 get('/collections/download/:uuid/:reader_token/*file' => 'collections#show_file',
78 get '/collections/download/:uuid/:reader_token' => 'collections#show_file_links'
79 get '/collections/:uuid/*file' => 'collections#show_file', :format => false
80 resources :projects do
81 match 'remove/:item_uuid', on: :member, via: :delete, action: :remove_item
82 match 'remove_items', on: :member, via: :delete, action: :remove_items
83 get 'choose', on: :collection
84 post 'share_with', on: :member
85 get 'tab_counts', on: :member
86 get 'public', on: :collection
90 get 'choose', :on => :collection
93 post 'actions' => 'actions#post'
94 get 'actions' => 'actions#show'
95 get 'websockets' => 'websocket#index'
96 post "combine_selected" => 'actions#combine_selected_files_into_collection'
98 root :to => 'projects#index'
100 # Send unroutable requests to an arbitrary controller
101 # (ends up at ApplicationController#render_not_found)
102 match '*a', to: 'links#render_not_found', via: [:get, :post]