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
49 get 'virtual_machines', :on => :member
50 get 'repositories', :on => :member
51 get 'ssh_keys', :on => :member
53 get '/current_token' => 'users#current_token'
54 get "/add_ssh_key_popup" => 'users#add_ssh_key_popup', :as => :add_ssh_key_popup
55 get "/add_ssh_key" => 'users#add_ssh_key', :as => :add_ssh_key
57 resources :factory_jobs
58 resources :uploaded_datasets
60 get 'choose', on: :collection
63 resources :pipeline_templates do
64 get 'choose', on: :collection
66 resources :pipeline_instances do
67 get 'compare', on: :collection
68 post 'copy', on: :member
71 get '/collections/graph' => 'collections#graph'
72 resources :collections do
73 post 'set_persistent', on: :member
74 get 'sharing_popup', :on => :member
75 post 'share', :on => :member
76 post 'unshare', :on => :member
77 get 'choose', on: :collection
79 get('/collections/download/:uuid/:reader_token/*file' => 'collections#show_file',
81 get '/collections/download/:uuid/:reader_token' => 'collections#show_file_links'
82 get '/collections/:uuid/*file' => 'collections#show_file', :format => false
83 resources :projects do
84 match 'remove/:item_uuid', on: :member, via: :delete, action: :remove_item
85 match 'remove_items', on: :member, via: :delete, action: :remove_items
86 get 'choose', on: :collection
87 post 'share_with', on: :member
88 get 'tab_counts', on: :member
89 get 'public', on: :collection
93 get 'choose', :on => :collection
96 post 'actions' => 'actions#post'
97 get 'actions' => 'actions#show'
98 get 'websockets' => 'websocket#index'
99 post "combine_selected" => 'actions#combine_selected_files_into_collection'
101 root :to => 'projects#index'
103 # Send unroutable requests to an arbitrary controller
104 # (ends up at ApplicationController#render_not_found)
105 match '*a', to: 'links#render_not_found', via: [:get, :post]