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 'owned_items', on: :member
23 get 'queue', on: :collection
24 get 'log_tail_follow', on: :member
25 post 'cancel', on: :member
27 resources :keep_disks do
28 post 'ping', on: :collection
33 post 'ping', on: :member
35 resources :pipeline_instances
36 resources :pipeline_templates
37 resources :repositories do
38 get 'get_all_permissions', on: :collection
42 resources :user_agreements do
43 get 'signatures', on: :collection
44 post 'sign', on: :collection
47 get 'current', on: :collection
48 get 'system', on: :collection
49 get 'event_stream', on: :member
50 post 'activate', on: :member
51 post 'setup', on: :collection
52 post 'unsetup', on: :member
53 get 'owned_items', on: :member
55 resources :virtual_machines do
56 get 'logins', on: :member
57 get 'get_all_logins', on: :collection
63 match '/auth/:provider/callback', :to => 'user_sessions#create'
64 match '/auth/failure', :to => 'user_sessions#failure'
67 match '/login', :to => 'user_sessions#login'
68 match '/logout', :to => 'user_sessions#logout'
70 match '/discovery/v1/apis/arvados/v1/rest', :to => 'arvados/v1/schema#index'
72 match '/static/login_failure', :to => 'static#login_failure', :as => :login_failure
74 # Send unroutable requests to an arbitrary controller
75 # (ends up at ApplicationController#render_not_found)
76 match '*a', :to => 'static#render_not_found'
78 root :to => 'static#home'