module shop client fix

This commit is contained in:
2024-11-05 13:44:08 +03:00
parent 6f7debc25b
commit 825d3df776
3 changed files with 23 additions and 8 deletions

View File

@ -33,8 +33,8 @@ class ModuleShopClientController extends AdminController
{
$per_page = 8;
$token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.W10.POQZmGB7EZIayINtYhzu5r1rdgZhF9qPJpaQkl_g6pU';
$modules_info = $this->client->request('GET', 'http://igfs.loc/api/module_shop/gb_slug', [
$token = $_ENV['MODULE_SHOP_TOKEN'];
$modules_info = $this->client->request('GET', $_ENV['MODULE_SHOP_URL'] . '/module_shop/gb_slug', [
'headers' => [
'Authorization' => 'Bearer ' . $token,
]