diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 193184a..99c45e5 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -133,6 +133,20 @@ $routes->group('front', ['namespace' => 'App\Controllers\Front'], function ($rou $routes->get('delete/(:num)', 'BoardController::delete/$1', ['filter' => 'authFilter:master']); $routes->get('download/(:any)/(:num)', 'BoardController::download/$1/$2'); }); + $routes->group('product', static function ($routes) { + $routes->get('', 'ProductController::index'); + $routes->get('excel', 'ProductController::excel/$1'); + $routes->get('view/(:uuid)', 'ProductController::view/$1'); + $routes->get('download/(:any)/(:uuid)', 'ProductController::download/$1/$2'); + }); + $routes->group('order', static function ($routes) { + $routes->get('', 'OrderController::index'); + $routes->get('view/(:uuid)', 'OrderController::view/$1'); + }); + $routes->group('ecommerce', static function ($routes) { + $routes->get('addCart', 'EcommerceController::addCart'); + $routes->get('cancelCart', 'EcommerceController::cancelCart'); + }); }); /* * -------------------------------------------------------------------- diff --git a/app/Config/Routes_Shoppinmall.php b/app/Config/Routes_Shoppinmall.php index 193184a..99c45e5 100644 --- a/app/Config/Routes_Shoppinmall.php +++ b/app/Config/Routes_Shoppinmall.php @@ -133,6 +133,20 @@ $routes->group('front', ['namespace' => 'App\Controllers\Front'], function ($rou $routes->get('delete/(:num)', 'BoardController::delete/$1', ['filter' => 'authFilter:master']); $routes->get('download/(:any)/(:num)', 'BoardController::download/$1/$2'); }); + $routes->group('product', static function ($routes) { + $routes->get('', 'ProductController::index'); + $routes->get('excel', 'ProductController::excel/$1'); + $routes->get('view/(:uuid)', 'ProductController::view/$1'); + $routes->get('download/(:any)/(:uuid)', 'ProductController::download/$1/$2'); + }); + $routes->group('order', static function ($routes) { + $routes->get('', 'OrderController::index'); + $routes->get('view/(:uuid)', 'OrderController::view/$1'); + }); + $routes->group('ecommerce', static function ($routes) { + $routes->get('addCart', 'EcommerceController::addCart'); + $routes->get('cancelCart', 'EcommerceController::cancelCart'); + }); }); /* * --------------------------------------------------------------------