1 Server::Application.routes.draw do
4 # See http://guides.rubyonrails.org/routing.html
8 resources :api_client_authorizations do
9 post 'create_system_auth', on: :collection
11 resources :api_clients
12 resources :authorized_keys
13 resources :collections do
14 get 'provenance', on: :member
15 get 'used_by', on: :member
18 get 'contents', on: :member
23 get 'queue', on: :collection
24 post 'cancel', on: :member
26 resources :keep_disks do
27 post 'ping', on: :collection
29 resources :keep_services do
30 get 'accessible', on: :collection
35 post 'ping', on: :member
37 resources :pipeline_instances
38 resources :pipeline_templates
39 resources :repositories do
40 get 'get_all_permissions', on: :collection
44 resources :user_agreements do
45 get 'signatures', on: :collection
46 post 'sign', on: :collection
49 get 'current', on: :collection
50 get 'system', on: :collection
51 post 'activate', on: :member
52 post 'setup', on: :collection
53 post 'unsetup', on: :member
55 resources :virtual_machines do
56 get 'logins', on: :member
57 get 'get_all_logins', on: :collection
59 get '/permissions/:uuid', :to => 'links#get_permissions'
64 match '/auth/:provider/callback', :to => 'user_sessions#create'
65 match '/auth/failure', :to => 'user_sessions#failure'
68 match '/login', :to => 'user_sessions#login'
69 match '/logout', :to => 'user_sessions#logout'
71 match '/discovery/v1/apis/arvados/v1/rest', :to => 'arvados/v1/schema#index'
73 match '/static/login_failure', :to => 'static#login_failure', :as => :login_failure
75 # Send unroutable requests to an arbitrary controller
76 # (ends up at ApplicationController#render_not_found)
77 match '*a', :to => 'static#render_not_found'
79 root :to => 'static#home'