2011-02-14 18:28:51 +00:00
|
|
|
AdoptAHydrant::Application.routes.draw do
|
2011-03-06 18:28:00 +00:00
|
|
|
devise_for :users, :controllers => {
|
2011-03-07 02:32:11 +00:00
|
|
|
:passwords => 'passwords',
|
2011-03-06 18:28:00 +00:00
|
|
|
:registrations => 'users',
|
2011-03-07 02:32:11 +00:00
|
|
|
:sessions => 'sessions',
|
2011-03-06 18:28:00 +00:00
|
|
|
}
|
|
|
|
resource :user
|
2011-03-17 20:53:05 +00:00
|
|
|
get 'hydrants' => 'hydrants#index'
|
2011-03-07 08:56:32 +00:00
|
|
|
resource :hydrant
|
2011-03-17 20:53:05 +00:00
|
|
|
scope 'javascripts', :controller => 'javascripts', :as => 'javascripts' do
|
|
|
|
get 'main', :action => 'main', :as => 'main'
|
|
|
|
end
|
|
|
|
get 'address' => 'addresses#index', :as => 'address'
|
2011-03-17 18:46:06 +00:00
|
|
|
get 'sitemap' => 'sitemaps#index', :as => 'sitemap'
|
|
|
|
get 'forms' => 'forms#index', :as => 'forms'
|
2011-03-06 18:28:00 +00:00
|
|
|
root :to => 'main#index'
|
2011-02-14 18:28:51 +00:00
|
|
|
end
|