shoppingmallv2 init...

This commit is contained in:
최준흠 2023-08-04 09:09:25 +09:00
parent 2f48ce079f
commit 138601e37d
2 changed files with 28 additions and 0 deletions

View File

@ -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');
});
});
/*
* --------------------------------------------------------------------

View File

@ -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');
});
});
/*
* --------------------------------------------------------------------