get all dependencies

This commit is contained in:
2025-01-23 13:33:41 +03:00
parent 0cc1e0773d
commit 29e0ff327f
3 changed files with 43 additions and 0 deletions

View File

@ -3,6 +3,7 @@
namespace app\modules\module_shop\controllers;
use app\modules\module_shop\models\ModuleShop;
use app\modules\module_shop\services\ModuleShopService;
use JetBrains\PhpStorm\NoReturn;
use kernel\helpers\Debug;
use kernel\Request;
@ -105,4 +106,9 @@ class ModuleShopRestController extends RestController
$this->renderApi($model->toArray());
}
public function actionGetDependenciesBySlug(string $slug)
{
$this->renderApi(ModuleShopService::getAllDependencies($slug));
}
}