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.
 
 
 
 
 

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