GeoRSS aggregator and Layar augmented reality server
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

routes.rb 1.9 KiB

il y a 12 ans
il y a 12 ans
il y a 12 ans
il y a 12 ans
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Apollo::Application.routes.draw do
  2. resources :feeds do
  3. member do
  4. get 'fetch'
  5. end
  6. end
  7. # The priority is based upon order of creation:
  8. # first created -> highest priority.
  9. # Sample of regular route:
  10. # match 'products/:id' => 'catalog#view'
  11. # Keep in mind you can assign values other than :controller and :action
  12. # Sample of named route:
  13. # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
  14. # This route can be invoked with purchase_url(:id => product.id)
  15. match '/fetch_all' => 'feeds#fetch_all', :as => :fetch_all
  16. # Sample resource route (maps HTTP verbs to controller actions automatically):
  17. # 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
  29. # Sample resource route with sub-resources:
  30. # resources :products do
  31. # resources :comments, :sales
  32. # resource :seller
  33. # end
  34. # Sample resource route with more complex sub-resources
  35. # resources :products do
  36. # resources :comments
  37. # resources :sales do
  38. # get 'recent', :on => :collection
  39. # end
  40. # end
  41. # Sample resource route within a namespace:
  42. # namespace :admin do
  43. # # Directs /admin/products/* to Admin::ProductsController
  44. # # (app/controllers/admin/products_controller.rb)
  45. # resources :products
  46. # end
  47. # You can have the root of your site routed with "root"
  48. # just remember to delete public/index.html.
  49. root :to => 'feeds#index'
  50. # See how all your routes lay out with "rake routes"
  51. # This is a legacy wild controller route that's not recommended for RESTful applications.
  52. # Note: This route will make all actions in every controller accessible via GET requests.
  53. # match ':controller(/:action(/:id))(.:format)'
  54. end