GeoRSS aggregator and Layar augmented reality server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

routes.rb 2.0 KiB

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