1 Server::Application.routes.draw do
4 # See http://guides.rubyonrails.org/routing.html
6 # OPTIONS requests just get an empty response with CORS headers.
7 match '*a', :to => 'static#empty', :via => 'OPTIONS'
11 resources :api_client_authorizations do
12 post 'create_system_auth', on: :collection
14 resources :api_clients
15 resources :authorized_keys
16 resources :collections do
17 get 'provenance', on: :member
18 get 'used_by', on: :member
21 get 'contents', on: :collection
22 get 'contents', on: :member
27 get 'queue', on: :collection
28 get 'queue_size', on: :collection
29 post 'cancel', on: :member
30 post 'lock', on: :member
32 resources :keep_disks do
33 post 'ping', on: :collection
35 resources :keep_services do
36 get 'accessible', on: :collection
41 post 'ping', on: :member
43 resources :pipeline_instances
44 resources :pipeline_templates
45 resources :repositories do
46 get 'get_all_permissions', on: :collection
50 resources :user_agreements do
51 get 'signatures', on: :collection
52 post 'sign', on: :collection
55 get 'current', on: :collection
56 get 'system', on: :collection
57 post 'activate', on: :member
58 post 'setup', on: :collection
59 post 'unsetup', on: :member
61 resources :virtual_machines do
62 get 'logins', on: :member
63 get 'get_all_logins', on: :collection
65 get '/permissions/:uuid', :to => 'links#get_permissions'
70 match '/auth/:provider/callback', :to => 'user_sessions#create'
71 match '/auth/failure', :to => 'user_sessions#failure'
74 match '/login', :to => 'user_sessions#login'
75 match '/logout', :to => 'user_sessions#logout'
77 match '/discovery/v1/apis/arvados/v1/rest', :to => 'arvados/v1/schema#index'
79 match '/static/login_failure', :to => 'static#login_failure', :as => :login_failure
81 # Send unroutable requests to an arbitrary controller
82 # (ends up at ApplicationController#render_not_found)
83 match '*a', :to => 'static#render_not_found'
85 root :to => 'static#home'