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.
 
 
 
 
 

82 line
2.2 KiB

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