routes.rb 2.0 KB

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