1 Server::Application.routes.draw do
7 # The priority is based upon order of creation:
8 # first created -> highest priority.
10 # Sample of regular route:
11 # match 'products/:id' => 'catalog#view'
12 # Keep in mind you can assign values other than :controller and :action
14 # Sample of named route:
15 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
16 # This route can be invoked with purchase_url(:id => product.id)
18 # Sample resource route (maps HTTP verbs to controller actions automatically):
21 # Sample resource route with options:
22 # resources :products do
33 # Sample resource route with sub-resources:
34 # resources :products do
35 # resources :comments, :sales
39 # Sample resource route with more complex sub-resources
40 # resources :products do
43 # get 'recent', :on => :collection
47 # Sample resource route within a namespace:
49 # # Directs /admin/products/* to Admin::ProductsController
50 # # (app/controllers/admin/products_controller.rb)
54 # You can have the root of your site routed with "root"
55 # just remember to delete public/index.html.
56 # root :to => 'welcome#index'
58 # See how all your routes lay out with "rake routes"
60 # This is a legacy wild controller route that's not recommended for RESTful applications.
61 # Note: This route will make all actions in every controller accessible via GET requests.
62 # match ':controller(/:action(/:id(.:format)))'
66 resources :collections
70 match '/nodes/:uuid/ping' => 'nodes#ping', :as => :ping_node
71 match '/metadata/:target_kind/:target_uuid' => 'metadata#index'