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
15 get "star" => 'actions#star', :as => :star
19 resources :api_client_authorizations
20 resources :virtual_machines
22 resources :container_requests
23 get '/virtual_machines/:id/webshell/:login' => 'virtual_machines#webshell', :as => :webshell_virtual_machine
24 resources :authorized_keys
27 post 'cancel', :on => :member
28 get 'logs', :on => :member
30 resources :repositories do
31 post 'share_with', on: :member
33 # {format: false} prevents rails from treating "foo.png" as foo?format=png
34 get '/repositories/:id/tree/:commit' => 'repositories#show_tree'
35 get '/repositories/:id/tree/:commit/*path' => 'repositories#show_tree', as: :show_repository_tree, format: false
36 get '/repositories/:id/blob/:commit/*path' => 'repositories#show_blob', as: :show_repository_blob, format: false
37 get '/repositories/:id/commit/:commit' => 'repositories#show_commit', as: :show_repository_commit
38 match '/logout' => 'sessions#destroy', via: [:get, :post]
39 get '/logged_out' => 'sessions#index'
41 get 'choose', :on => :collection
42 get 'home', :on => :member
43 get 'welcome', :on => :collection
44 get 'inactive', :on => :collection
45 get 'activity', :on => :collection
46 get 'storage', :on => :collection
47 post 'sudo', :on => :member
48 post 'unsetup', :on => :member
49 get 'setup_popup', :on => :member
50 get 'profile', :on => :member
51 post 'request_shell_access', :on => :member
52 get 'virtual_machines', :on => :member
53 get 'repositories', :on => :member
54 get 'ssh_keys', :on => :member
56 get '/current_token' => 'users#current_token'
57 get "/add_ssh_key_popup" => 'users#add_ssh_key_popup', :as => :add_ssh_key_popup
58 get "/add_ssh_key" => 'users#add_ssh_key', :as => :add_ssh_key
60 resources :factory_jobs
61 resources :uploaded_datasets
63 get 'choose', on: :collection
66 resources :pipeline_templates do
67 get 'choose', on: :collection
69 resources :pipeline_instances do
70 get 'compare', on: :collection
71 post 'copy', on: :member
74 get '/collections/graph' => 'collections#graph'
75 resources :collections do
76 post 'set_persistent', on: :member
77 get 'sharing_popup', :on => :member
78 post 'share', :on => :member
79 post 'unshare', :on => :member
80 get 'choose', on: :collection
82 get('/collections/download/:uuid/:reader_token/*file' => 'collections#show_file',
84 get '/collections/download/:uuid/:reader_token' => 'collections#show_file_links'
85 get '/collections/:uuid/*file' => 'collections#show_file', :format => false
86 resources :projects do
87 match 'remove/:item_uuid', on: :member, via: :delete, action: :remove_item
88 match 'remove_items', on: :member, via: :delete, action: :remove_items
89 get 'choose', on: :collection
90 post 'share_with', on: :member
91 get 'tab_counts', on: :member
92 get 'public', on: :collection
96 get 'choose', :on => :collection
99 post 'actions' => 'actions#post'
100 get 'actions' => 'actions#show'
101 get 'websockets' => 'websocket#index'
102 post "combine_selected" => 'actions#combine_selected_files_into_collection'
104 root :to => 'projects#index'
106 # Send unroutable requests to an arbitrary controller
107 # (ends up at ApplicationController#render_not_found)
108 match '*a', to: 'links#render_not_found', via: [:get, :post]