From 138601e37d35f654e61aadb0712a7fbc7efa54a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Fri, 4 Aug 2023 09:09:25 +0900 Subject: [PATCH] shoppingmallv2 init... --- app/Config/Routes.php | 14 ++++++++++++++ app/Config/Routes_Shoppinmall.php | 14 ++++++++++++++ 2 files changed, 28 insertions(+) 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'); + }); }); /* * --------------------------------------------------------------------