Deleted unused ./test directory
[feedcatcher.git] / config / routes.rb
1 Feedcatcher::Application.routes.draw do
2 # The priority is based upon order of creation: first created -> highest priority.
3 # See how all your routes lay out with "rake routes".
4
5 # You can have the root of your site routed with "root"
6 # root 'welcome#index'
7 root 'feed#index'
8
9 get 'index', to: 'feed#index', as: :index
10 get ':feed_name', to: 'feed#show', as: :feed
11 post '', to: 'feed#update', as: :update
12
13 # Example of regular route:
14 # get 'products/:id' => 'catalog#view'
15
16 # Example of named route that can be invoked with purchase_url(id: product.id)
17 # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
18
19 # Example resource route (maps HTTP verbs to controller actions automatically):
20 # resources :products
21
22 # Example resource route with options:
23 # resources :products do
24 # member do
25 # get 'short'
26 # post 'toggle'
27 # end
28 #
29 # collection do
30 # get 'sold'
31 # end
32 # end
33
34 # Example resource route with sub-resources:
35 # resources :products do
36 # resources :comments, :sales
37 # resource :seller
38 # end
39
40 # Example resource route with more complex sub-resources:
41 # resources :products do
42 # resources :comments
43 # resources :sales do
44 # get 'recent', on: :collection
45 # end
46 # end
47
48 # Example resource route with concerns:
49 # concern :toggleable do
50 # post 'toggle'
51 # end
52 # resources :posts, concerns: :toggleable
53 # resources :photos, concerns: :toggleable
54
55 # Example resource route within a namespace:
56 # namespace :admin do
57 # # Directs /admin/products/* to Admin::ProductsController
58 # # (app/controllers/admin/products_controller.rb)
59 # resources :products
60 # end
61 end