ActionController::Routing::Routes.draw do |map|
  map.resource :locations
  map.connect '/announcements', :controller => 'locations', :action => 'announcements', :conditions => { :subdomain => /.+/ }
  map.connect '/contact-us', :controller => 'locations', :action => 'contact', :conditions => { :subdomain => /.+/ }
  map.connect '/schedule/:id', :controller => 'locations', :action => 'schedule', :conditions => { :subdomain => /.+/ }
  map.connect '/find-us', :controller => 'locations', :action => 'find', :conditions => { :subdomain => /.+/ }
  map.location_home '', :controller => 'locations', :action => 'show', :conditions => { :subdomain => /.+/ }
 map.flatpage '*path', :controller => 'flatpages', :action => 'show'
end