3296: send notification email when the user first creates profile, provided an addres...
[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 "users/update_profile" => 'users#update_profile', :as => :update_profile
14   resources :nodes
15   resources :humans
16   resources :traits
17   resources :api_client_authorizations
18   resources :repositories
19   resources :virtual_machines
20   resources :authorized_keys
21   resources :job_tasks
22   resources :jobs do
23     post 'cancel', :on => :member
24   end
25   match '/logout' => 'sessions#destroy', via: [:get, :post]
26   get '/logged_out' => 'sessions#index'
27   resources :users do
28     get 'choose', :on => :collection
29     get 'home', :on => :member
30     get 'welcome', :on => :collection
31     get 'activity', :on => :collection
32     get 'storage', :on => :collection
33     post 'sudo', :on => :member
34     post 'unsetup', :on => :member
35     get 'setup_popup', :on => :member
36   end
37   get '/manage_account' => 'users#manage_account'
38   get "/add_ssh_key_popup" => 'users#add_ssh_key_popup', :as => :add_ssh_key_popup
39   get "/add_ssh_key" => 'users#add_ssh_key', :as => :add_ssh_key
40   get '/profile' => 'users#manage_profile'
41   resources :logs
42   resources :factory_jobs
43   resources :uploaded_datasets
44   resources :groups do
45     get 'choose', on: :collection
46   end
47   resources :specimens
48   resources :pipeline_templates do
49     get 'choose', on: :collection
50   end
51   resources :pipeline_instances do
52     get 'compare', on: :collection
53     post 'copy', on: :member
54   end
55   resources :links
56   get '/collections/graph' => 'collections#graph'
57   resources :collections do
58     post 'set_persistent', on: :member
59     get 'sharing_popup', :on => :member
60     post 'share', :on => :member
61     post 'unshare', :on => :member
62     get 'choose', on: :collection
63   end
64   get('/collections/download/:uuid/:reader_token/*file' => 'collections#show_file',
65       format: false)
66   get '/collections/download/:uuid/:reader_token' => 'collections#show_file_links'
67   get '/collections/:uuid/*file' => 'collections#show_file', :format => false
68   resources :projects do
69     match 'remove/:item_uuid', on: :member, via: :delete, action: :remove_item
70     match 'remove_items', on: :member, via: :delete, action: :remove_items
71     get 'move_items', on: :member, action: :move_items
72     get 'choose', on: :collection
73     post 'share_with', on: :member
74   end
75   resources :search do
76     get 'choose', :on => :collection
77   end
78
79   post 'actions' => 'actions#post'
80   get 'actions' => 'actions#show'
81   get 'websockets' => 'websocket#index'
82
83   root :to => 'projects#index'
84
85   # Send unroutable requests to an arbitrary controller
86   # (ends up at ApplicationController#render_not_found)
87   match '*a', to: 'links#render_not_found', via: [:get, :post]
88 end