24 lines
733 B
Ruby
24 lines
733 B
Ruby
AdoptAThing::Application.routes.draw do
|
|
devise_for :users, :controllers => {
|
|
:passwords => 'passwords',
|
|
:registrations => 'users',
|
|
:sessions => 'sessions',
|
|
}
|
|
|
|
get 'address' => 'addresses#show', :as => 'address'
|
|
get 'info_window' => 'info_window#index', :as => 'info_window'
|
|
get 'sitemap' => 'sitemaps#index', :as => 'sitemap'
|
|
get 'javascripts/main(.:format)' => 'javascripts#main', :as => 'javascript'
|
|
|
|
scope "sidebar", :controller => :sidebar do
|
|
get :search, :as => 'search'
|
|
get :combo_form, :as => 'combo_form'
|
|
get :edit_profile , :as => 'edit_profile'
|
|
end
|
|
|
|
resource :reminders
|
|
resource :things
|
|
mount RailsAdmin::Engine => '/admin', :as => 'rails_admin'
|
|
root :to => 'main#index'
|
|
end
|