1 Server::Application.routes.draw do
6 resources :repositories
7 resources :virtual_machines
8 resources :authorized_keys
10 resources :commit_ancestors
14 resources :api_client_authorizations
15 resources :api_clients
19 resources :collections
22 resources :pipeline_templates
23 resources :pipeline_instances
25 # The priority is based upon order of creation:
26 # first created -> highest priority.
28 # Sample of regular route:
29 # match 'products/:id' => 'catalog#view'
30 # Keep in mind you can assign values other than :controller and :action
32 # Sample of named route:
33 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
34 # This route can be invoked with purchase_url(:id => product.id)
36 # Sample resource route (maps HTTP verbs to controller actions automatically):
39 # Sample resource route with options:
40 # resources :products do
51 # Sample resource route with sub-resources:
52 # resources :products do
53 # resources :comments, :sales
57 # Sample resource route with more complex sub-resources
58 # resources :products do
61 # get 'recent', :on => :collection
65 # Sample resource route within a namespace:
67 # # Directs /admin/products/* to Admin::ProductsController
68 # # (app/controllers/admin/products_controller.rb)
72 # You can have the root of your site routed with "root"
73 # just remember to delete public/index.html.
74 # root :to => 'welcome#index'
76 # See how all your routes lay out with "rake routes"
78 # This is a legacy wild controller route that's not recommended for RESTful applications.
79 # Note: This route will make all actions in every controller accessible via GET requests.
80 # match ':controller(/:action(/:id(.:format)))'
84 match '/nodes/:uuid/ping' => 'nodes#ping', :as => :ping_node
85 match '/keep_disks/ping' => 'keep_disks#ping', :as => :ping_keep_disk
86 match '/links/from/:tail_uuid' => 'links#index', :as => :arvados_v1_links_from
87 match '/users/current' => 'users#current'
88 match '/users/system' => 'users#system'
89 match '/jobs/queue' => 'jobs#queue'
90 match '/jobs/:uuid/log_tail_follow' => 'jobs#log_tail_follow'
91 post '/jobs/:uuid/cancel' => 'jobs#cancel'
92 match '/users/:uuid/event_stream' => 'users#event_stream'
93 post '/users/:uuid/activate' => 'users#activate'
94 post '/users/setup' => 'users#setup'
95 post '/users/:uuid/unsetup' => 'users#unsetup'
96 match '/virtual_machines/get_all_logins' => 'virtual_machines#get_all_logins'
97 match '/virtual_machines/:uuid/logins' => 'virtual_machines#logins'
98 post '/api_client_authorizations/create_system_auth' => 'api_client_authorizations#create_system_auth'
99 match '/repositories/get_all_permissions' => 'repositories#get_all_permissions'
100 get '/user_agreements/signatures' => 'user_agreements#signatures'
101 post '/user_agreements/sign' => 'user_agreements#sign'
102 get '/collections/:uuid/provenance' => 'collections#provenance'
103 get '/collections/:uuid/used_by' => 'collections#used_by'
104 resources :collections
107 resources :pipeline_templates
108 resources :pipeline_instances
113 resources :api_clients
114 resources :api_client_authorizations
117 resources :keep_disks
118 resources :authorized_keys
119 resources :virtual_machines
120 resources :repositories
123 resources :user_agreements
128 match '/auth/:provider/callback', :to => 'user_sessions#create'
129 match '/auth/failure', :to => 'user_sessions#failure'
132 match '/login', :to => 'user_sessions#login'
133 match '/logout', :to => 'user_sessions#logout'
135 match '/discovery/v1/apis/arvados/v1/rest', :to => 'arvados/v1/schema#index'
137 match '/static/login_failure', :to => 'static#login_failure', :as => :login_failure
139 # Send unroutable requests to an arbitrary controller
140 # (ends up at ApplicationController#render_not_found)
141 match '*a', :to => 'arvados/v1/links#render_not_found'
143 root :to => 'static#home'