api ms group by slug, views, ins

This commit is contained in:
2024-10-25 15:47:11 +03:00
parent 45d51c7119
commit f7838ea665
5 changed files with 72 additions and 3 deletions

View File

@ -21,6 +21,9 @@ App::$collector->group(["prefix" => "admin"], function (CgRouteCollector $router
App::$collector->group(["prefix" => "api"], function (CgRouteCollector $router){
App::$collector->group(['before' => 'bearer'], function (CgRouteCollector $router){
App::$collector->group(["prefix" => "module_shop"], function (CgRouteCollector $router){
App::$collector->get('/gb_slug', [\app\modules\module_shop\controllers\ModuleShopRestController::class, 'actionIndexGroupBySlug']);
});
$router->rest("module_shop", [\app\modules\module_shop\controllers\ModuleShopRestController::class]);
});
});