1 Server::Application.routes.draw do
3 resources :repositories
4 resources :virtual_machines
5 resources :authorized_keys
7 resources :commit_ancestors
11 resources :api_client_authorizations
12 resources :api_clients
16 resources :collections
19 resources :pipeline_templates
20 resources :pipeline_instances
22 # The priority is based upon order of creation:
23 # first created -> highest priority.
25 # Sample of regular route:
26 # match 'products/:id' => 'catalog#view'
27 # Keep in mind you can assign values other than :controller and :action
29 # Sample of named route:
30 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
31 # This route can be invoked with purchase_url(:id => product.id)
33 # Sample resource route (maps HTTP verbs to controller actions automatically):
36 # Sample resource route with options:
37 # resources :products do
48 # Sample resource route with sub-resources:
49 # resources :products do
50 # resources :comments, :sales
54 # Sample resource route with more complex sub-resources
55 # resources :products do
58 # get 'recent', :on => :collection
62 # Sample resource route within a namespace:
64 # # Directs /admin/products/* to Admin::ProductsController
65 # # (app/controllers/admin/products_controller.rb)
69 # You can have the root of your site routed with "root"
70 # just remember to delete public/index.html.
71 # root :to => 'welcome#index'
73 # See how all your routes lay out with "rake routes"
75 # This is a legacy wild controller route that's not recommended for RESTful applications.
76 # Note: This route will make all actions in every controller accessible via GET requests.
77 # match ':controller(/:action(/:id(.:format)))'
81 match '/schema' => 'schema#show'
82 match '/nodes/:uuid/ping' => 'nodes#ping', :as => :ping_node
83 match '/keep_disks/ping' => 'keep_disks#ping', :as => :ping_keep_disk
84 match '/links/from/:tail_uuid' => 'links#index', :as => :arvados_v1_links_from
85 match '/users/current' => 'users#current'
86 match '/users/system' => 'users#system'
87 match '/jobs/queue' => 'jobs#queue'
88 match '/jobs/:uuid/log_tail_follow' => 'jobs#log_tail_follow'
89 match '/virtual_machines/get_all_logins' => 'virtual_machines#get_all_logins'
90 match '/repositories/get_all_permissions' => 'repositories#get_all_permissions'
91 resources :collections
94 resources :pipeline_templates
95 resources :pipeline_instances
100 resources :api_clients
101 resources :api_client_authorizations
104 resources :keep_disks
105 resources :authorized_keys
106 resources :virtual_machines
107 resources :repositories
113 match '/auth/:provider/callback', :to => 'user_sessions#create'
114 match '/auth/failure', :to => 'user_sessions#failure'
117 match '/login', :to => 'user_sessions#login'
118 match '/logout', :to => 'user_sessions#logout'
120 match '/discovery/v1/apis/arvados/v1/rest', :to => 'arvados/v1/schema#discovery_rest_description'
122 # Send unroutable requests to an arbitrary controller
123 # (ends up at ApplicationController#render_not_found)
124 match '*a', :to => 'arvados/v1/links#render_not_found'
126 root :to => 'static#home'