GeoRSS aggregator and Layar augmented reality server
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

78 行
2.1 KiB

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