filtre routes

This commit is contained in:
Nicolas Bally 2014-12-09 09:14:48 +01:00
parent 235620506d
commit 0ab89a4f28

View File

@ -212,7 +212,8 @@ Survey::Application.routes.draw do
get '*url.html' => 'public/menu_items#show', :as => :menu_item, :f => "html"
get '*url.:f' => 'public/menu_items#redirect', :f => "html"
root 'public/menu_items#show' ,:constraints => {:domain => ["new.lepicvert.org", "localhost"]}
root 'public/menu_items#show' ,:constraints => {:domain => ["localhost"]}
root 'public/menu_items#show' ,:constraints => {:domain => ["lepicvert.org"], :subdomain => ["new"]}
end