1 Server::Application.routes.draw do
4 resources :repositories
5 resources :virtual_machines
6 resources :authorized_keys
8 resources :commit_ancestors
12 resources :api_client_authorizations
13 resources :api_clients
17 resources :collections
20 resources :pipeline_templates
21 resources :pipeline_instances
23 # The priority is based upon order of creation:
24 # first created -> highest priority.
26 # Sample of regular route:
27 # match 'products/:id' => 'catalog#view'
28 # Keep in mind you can assign values other than :controller and :action
30 # Sample of named route:
31 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
32 # This route can be invoked with purchase_url(:id => product.id)
34 # Sample resource route (maps HTTP verbs to controller actions automatically):
37 # Sample resource route with options:
38 # resources :products do
49 # Sample resource route with sub-resources:
50 # resources :products do
51 # resources :comments, :sales
55 # Sample resource route with more complex sub-resources
56 # resources :products do
59 # get 'recent', :on => :collection
63 # Sample resource route within a namespace:
65 # # Directs /admin/products/* to Admin::ProductsController
66 # # (app/controllers/admin/products_controller.rb)
70 # You can have the root of your site routed with "root"
71 # just remember to delete public/index.html.
72 # root :to => 'welcome#index'
74 # See how all your routes lay out with "rake routes"
76 # This is a legacy wild controller route that's not recommended for RESTful applications.
77 # Note: This route will make all actions in every controller accessible via GET requests.
78 # match ':controller(/:action(/:id(.:format)))'
82 match '/schema' => 'schema#show'
83 match '/nodes/:uuid/ping' => 'nodes#ping', :as => :ping_node
84 match '/keep_disks/ping' => 'keep_disks#ping', :as => :ping_keep_disk
85 match '/links/from/:tail_uuid' => 'links#index', :as => :arvados_v1_links_from
86 match '/users/current' => 'users#current'
87 match '/users/system' => 'users#system'
88 match '/jobs/queue' => 'jobs#queue'
89 match '/jobs/:uuid/log_tail_follow' => 'jobs#log_tail_follow'
90 post '/jobs/:uuid/cancel' => 'jobs#cancel'
91 match '/users/:uuid/event_stream' => 'users#event_stream'
92 post '/users/:uuid/activate' => 'users#activate'
93 post '/users/setup' => 'users#setup'
94 match '/virtual_machines/get_all_logins' => 'virtual_machines#get_all_logins'
95 match '/virtual_machines/:uuid/logins' => 'virtual_machines#logins'
96 post '/api_client_authorizations/create_system_auth' => 'api_client_authorizations#create_system_auth'
97 match '/repositories/get_all_permissions' => 'repositories#get_all_permissions'
98 get '/user_agreements/signatures' => 'user_agreements#signatures'
99 post '/user_agreements/sign' => 'user_agreements#sign'
100 get '/collections/:uuid/provenance' => 'collections#provenance'
101 get '/collections/:uuid/used_by' => 'collections#used_by'
102 resources :collections
105 resources :pipeline_templates
106 resources :pipeline_instances
111 resources :api_clients
112 resources :api_client_authorizations
115 resources :keep_disks
116 resources :authorized_keys
117 resources :virtual_machines
118 resources :repositories
121 resources :user_agreements
126 match '/auth/:provider/callback', :to => 'user_sessions#create'
127 match '/auth/failure', :to => 'user_sessions#failure'
130 match '/login', :to => 'user_sessions#login'
131 match '/logout', :to => 'user_sessions#logout'
133 match '/discovery/v1/apis/arvados/v1/rest', :to => 'arvados/v1/schema#discovery_rest_description'
135 match '/static/login_failure', :to => 'static#login_failure', :as => :login_failure
137 # Send unroutable requests to an arbitrary controller
138 # (ends up at ApplicationController#render_not_found)
139 match '*a', :to => 'arvados/v1/links#render_not_found'
141 root :to => 'static#home'