Stub frontend
[b4.git] / config / routes.rb
blobb9caba6d5086d23e8390b7e69e9c5ef672af892e
1 B4::Application.routes.draw do
2   devise_for :users
4   # The priority is based upon order of creation:
5   # first created -> highest priority.
7   # Sample of regular route:
8   #   match 'products/:id' => 'catalog#view'
9   # Keep in mind you can assign values other than :controller and :action
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)
15   # Sample resource route (maps HTTP verbs to controller actions automatically):
16   #   resources :products
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
30   # Sample resource route with sub-resources:
31   #   resources :products do
32   #     resources :comments, :sales
33   #     resource :seller
34   #   end
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
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
51   # You can have the root of your site routed with "root"
52   # just remember to delete public/index.html.
53   root :to => 'application#app'
54   match 'links/tagged/:tag' => 'links#tagged'
55   resources :links
56   #match 'links/(:tag)' => 'link#show'
57   #match 'add' => 'link#add'
59   # See how all your routes lay out with "rake routes"
61   # This is a legacy wild controller route that's not recommended for RESTful applications.
62   # Note: This route will make all actions in every controller accessible via GET requests.
63   # match ':controller(/:action(/:id))(.:format)'
64 end