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: :collection
19 get 'contents', on: :member
24 get 'queue', on: :collection
25 get 'queue_size', on: :collection
26 post 'cancel', on: :member
28 resources :keep_disks do
29 post 'ping', on: :collection
31 resources :keep_services do
32 get 'accessible', on: :collection
37 post 'ping', on: :member
39 resources :pipeline_instances
40 resources :pipeline_templates
41 resources :repositories do
42 get 'get_all_permissions', on: :collection
46 resources :user_agreements do
47 get 'signatures', on: :collection
48 post 'sign', on: :collection
51 get 'current', on: :collection
52 get 'system', on: :collection
53 post 'activate', on: :member
54 post 'setup', on: :collection
55 post 'unsetup', on: :member
57 resources :virtual_machines do
58 get 'logins', on: :member
59 get 'get_all_logins', on: :collection
61 get '/permissions/:uuid', :to => 'links#get_permissions'
66 match '/auth/:provider/callback', :to => 'user_sessions#create'
67 match '/auth/failure', :to => 'user_sessions#failure'
70 match '/login', :to => 'user_sessions#login'
71 match '/logout', :to => 'user_sessions#logout'
73 match '/discovery/v1/apis/arvados/v1/rest', :to => 'arvados/v1/schema#index'
75 match '/static/login_failure', :to => 'static#login_failure', :as => :login_failure
77 # Send unroutable requests to an arbitrary controller
78 # (ends up at ApplicationController#render_not_found)
79 match '*a', :to => 'static#render_not_found'
81 root :to => 'static#home'