2022-06-22 10:48:58 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Modules\Api\Rest\V1\Config;
|
|
|
|
|
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
|
|
|
2022-06-29 16:19:22 +00:00
|
|
|
class RestApi extends BaseConfig
|
2022-06-22 10:48:58 +00:00
|
|
|
{
|
2022-06-29 16:19:22 +00:00
|
|
|
/**
|
|
|
|
* Flag to enable or disable the Rest API.
|
|
|
|
*
|
|
|
|
* Disabled by default.
|
|
|
|
*/
|
|
|
|
public bool $enabled = false;
|
|
|
|
|
2022-06-22 10:48:58 +00:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Rest API gateway
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Defines a base route for all API pages
|
|
|
|
*/
|
|
|
|
public string $gateway = 'api/rest/v1/';
|
|
|
|
}
|