14 lines
370 B
Ruby
14 lines
370 B
Ruby
AdoptAHydrant::Application.routes.draw do
|
|
devise_for :users, :controllers => {
|
|
:passwords => 'passwords',
|
|
:registrations => 'users',
|
|
:sessions => 'sessions',
|
|
}
|
|
resource :user
|
|
get 'hydrants' => 'hydrants#list'
|
|
resource :hydrant
|
|
get 'address' => 'addresses#show'
|
|
get 'sitemap' => 'sitemaps#index', :as => 'sitemap'
|
|
root :to => 'main#index'
|
|
end
|