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
16 get "all_processes" => 'work_units#index', :as => :all_processes
17 get "choose_work_unit_templates" => 'work_unit_templates#choose', :as => :choose_work_unit_templates
22 resources :api_client_authorizations
23 resources :virtual_machines
25 resources :container_requests do
26 post 'cancel', :on => :member
28 get '/virtual_machines/:id/webshell/:login' => 'virtual_machines#webshell', :as => :webshell_virtual_machine
29 resources :authorized_keys
32 post 'cancel', :on => :member
33 get 'logs', :on => :member
35 resources :repositories do
36 post 'share_with', on: :member
38 # {format: false} prevents rails from treating "foo.png" as foo?format=png
39 get '/repositories/:id/tree/:commit' => 'repositories#show_tree'
40 get '/repositories/:id/tree/:commit/*path' => 'repositories#show_tree', as: :show_repository_tree, format: false
41 get '/repositories/:id/blob/:commit/*path' => 'repositories#show_blob', as: :show_repository_blob, format: false
42 get '/repositories/:id/commit/:commit' => 'repositories#show_commit', as: :show_repository_commit
43 match '/logout' => 'sessions#destroy', via: [:get, :post]
44 get '/logged_out' => 'sessions#index'
46 get 'choose', :on => :collection
47 get 'home', :on => :member
48 get 'welcome', :on => :collection
49 get 'inactive', :on => :collection
50 get 'activity', :on => :collection
51 get 'storage', :on => :collection
52 post 'sudo', :on => :member
53 post 'unsetup', :on => :member
54 get 'setup_popup', :on => :member
55 get 'profile', :on => :member
56 post 'request_shell_access', :on => :member
57 get 'virtual_machines', :on => :member
58 get 'repositories', :on => :member
59 get 'ssh_keys', :on => :member
61 get '/current_token' => 'users#current_token'
62 get "/add_ssh_key_popup" => 'users#add_ssh_key_popup', :as => :add_ssh_key_popup
63 get "/add_ssh_key" => 'users#add_ssh_key', :as => :add_ssh_key
65 resources :factory_jobs
66 resources :uploaded_datasets
68 get 'choose', on: :collection
71 resources :pipeline_templates do
72 get 'choose', on: :collection
74 resources :pipeline_instances do
75 get 'compare', on: :collection
76 post 'copy', on: :member
79 get '/collections/graph' => 'collections#graph'
80 resources :collections do
81 post 'set_persistent', on: :member
82 get 'sharing_popup', :on => :member
83 post 'share', :on => :member
84 post 'unshare', :on => :member
85 get 'choose', on: :collection
87 get('/collections/download/:uuid/:reader_token/*file' => 'collections#show_file',
89 get '/collections/download/:uuid/:reader_token' => 'collections#show_file_links'
90 get '/collections/:uuid/*file' => 'collections#show_file', :format => false
91 resources :projects do
92 match 'remove/:item_uuid', on: :member, via: :delete, action: :remove_item
93 match 'remove_items', on: :member, via: :delete, action: :remove_items
94 get 'choose', on: :collection
95 post 'share_with', on: :member
96 get 'tab_counts', on: :member
97 get 'public', on: :collection
101 get 'choose', :on => :collection
106 post 'actions' => 'actions#post'
107 get 'actions' => 'actions#show'
108 get 'websockets' => 'websocket#index'
109 post "combine_selected" => 'actions#combine_selected_files_into_collection'
111 root :to => 'projects#index'
113 # Send unroutable requests to an arbitrary controller
114 # (ends up at ApplicationController#render_not_found)
115 match '*a', to: 'links#render_not_found', via: [:get, :post]