add User resource, restrict generic resource pages to admin users
[arvados.git] / config / routes.rb
1 Vcffarm::Application.routes.draw do
2   resources :users
3
4
5   resources :logs
6
7
8   resources :factory_jobs
9
10
11   resources :uploaded_datasets
12
13
14   resources :projects
15
16
17   resources :specimens
18
19
20   resources :pipelines
21
22
23   resources :pipeline_invocations
24
25
26   resources :links
27
28
29   resources :collections
30
31   root :to => 'factory_jobs#index'
32
33   # Send unroutable requests to an arbitrary controller
34   # (ends up at ApplicationController#render_not_found)
35   match '*a', :to => 'links#render_not_found'
36
37
38   # The priority is based upon order of creation:
39   # first created -> highest priority.
40
41   # Sample of regular route:
42   #   match 'products/:id' => 'catalog#view'
43   # Keep in mind you can assign values other than :controller and :action
44
45   # Sample of named route:
46   #   match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
47   # This route can be invoked with purchase_url(:id => product.id)
48
49   # Sample resource route (maps HTTP verbs to controller actions automatically):
50   #   resources :products
51
52   # Sample resource route with options:
53   #   resources :products do
54   #     member do
55   #       get 'short'
56   #       post 'toggle'
57   #     end
58   #
59   #     collection do
60   #       get 'sold'
61   #     end
62   #   end
63
64   # Sample resource route with sub-resources:
65   #   resources :products do
66   #     resources :comments, :sales
67   #     resource :seller
68   #   end
69
70   # Sample resource route with more complex sub-resources
71   #   resources :products do
72   #     resources :comments
73   #     resources :sales do
74   #       get 'recent', :on => :collection
75   #     end
76   #   end
77
78   # Sample resource route within a namespace:
79   #   namespace :admin do
80   #     # Directs /admin/products/* to Admin::ProductsController
81   #     # (app/controllers/admin/products_controller.rb)
82   #     resources :products
83   #   end
84
85   # You can have the root of your site routed with "root"
86   # just remember to delete public/index.html.
87   # root :to => 'welcome#index'
88
89   # See how all your routes lay out with "rake routes"
90
91   # This is a legacy wild controller route that's not recommended for RESTful applications.
92   # Note: This route will make all actions in every controller accessible via GET requests.
93   # match ':controller(/:action(/:id))(.:format)'
94 end