From b6f96245442acf032319ea6fd16b452f69d8ea83 Mon Sep 17 00:00:00 2001 From: touffies Date: Wed, 23 Oct 2013 11:49:36 +0200 Subject: [PATCH] Add a generic route (default) to manage the simple path --- .../Thelia/Config/Resources/routing/front.xml | 70 ++++--------------- 1 file changed, 15 insertions(+), 55 deletions(-) diff --git a/core/lib/Thelia/Config/Resources/routing/front.xml b/core/lib/Thelia/Config/Resources/routing/front.xml index 97ddce393..3531487ce 100755 --- a/core/lib/Thelia/Config/Resources/routing/front.xml +++ b/core/lib/Thelia/Config/Resources/routing/front.xml @@ -4,66 +4,37 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd"> - + - - - Thelia\Controller\Front\DefaultController::noAction - search - - - - Thelia\Controller\Front\DefaultController::noAction - view_all - - - + Thelia\Controller\Front\CustomerController::createAction register - - Thelia\Controller\Front\DefaultController::noAction - register - - - + Thelia\Controller\Front\CustomerController::loginAction login - - Thelia\Controller\Front\DefaultController::noAction - login - - + Thelia\Controller\Front\CustomerController::newPasswordAction password - - Thelia\Controller\Front\DefaultController::noAction - password - - - + Thelia\Controller\Front\CustomerController::logoutAction - - - Thelia\Controller\Front\DefaultController::noAction - account - - + Thelia\Controller\Front\CustomerController::viewAction account-update @@ -84,7 +55,6 @@ Thelia\Controller\Front\DefaultController::noAction account-password - @@ -122,11 +92,6 @@ - - Thelia\Controller\Front\DefaultController::noAction - cart - - Thelia\Controller\Front\CartController::addItem @@ -140,7 +105,6 @@ Thelia\Controller\Front\CartController::changeItem cart - @@ -179,11 +143,6 @@ - - Thelia\Controller\Front\DefaultController::noAction - contact - - Thelia\Controller\Front\ContactController::sendAction contact @@ -196,16 +155,17 @@ - - - Thelia\Controller\Front\DefaultController::noAction - newsletter - - Thelia\Controller\Front\NewsletterController::subscribeAction newsletter - + + + + Thelia\Controller\Front\DefaultController::noAction + index + ^(?!admin)[^/]+ + +