Initial commit
[arvados.git] / config / routes.rb
1 Server::Application.routes.draw do
2   resources :collections
3
4   # The priority is based upon order of creation:
5   # first created -> highest priority.
6
7   # Sample of regular route:
8   #   match 'products/:id' => 'catalog#view'
9   # Keep in mind you can assign values other than :controller and :action
10
11   # Sample of named route:
12   #   match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
13   # This route can be invoked with purchase_url(:id => product.id)
14
15   # Sample resource route (maps HTTP verbs to controller actions automatically):
16   #   resources :products
17
18   # Sample resource route with options:
19   #   resources :products do
20   #     member do
21   #       get 'short'
22   #       post 'toggle'
23   #     end
24   #
25   #     collection do
26   #       get 'sold'
27   #     end
28   #   end
29
30   # Sample resource route with sub-resources:
31   #   resources :products do
32   #     resources :comments, :sales
33   #     resource :seller
34   #   end
35
36   # Sample resource route with more complex sub-resources
37   #   resources :products do
38   #     resources :comments
39   #     resources :sales do
40   #       get 'recent', :on => :collection
41   #     end
42   #   end
43
44   # Sample resource route within a namespace:
45   #   namespace :admin do
46   #     # Directs /admin/products/* to Admin::ProductsController
47   #     # (app/controllers/admin/products_controller.rb)
48   #     resources :products
49   #   end
50
51   # You can have the root of your site routed with "root"
52   # just remember to delete public/index.html.
53   # root :to => 'welcome#index'
54
55   # See how all your routes lay out with "rake routes"
56
57   # This is a legacy wild controller route that's not recommended for RESTful applications.
58   # Note: This route will make all actions in every controller accessible via GET requests.
59   # match ':controller(/:action(/:id(.:format)))'
60
61   namespace :orvos do
62     namespace :v1 do
63       resources :collections
64     end
65   end
66
67 end