| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package FireBox |
| 4 |
* @version 3.1.13 |
| 5 |
* |
| 6 |
* @author FirePlugins <info@fireplugins.com> |
| 7 |
* @link https://www.fireplugins.com |
| 8 |
* @copyright Copyright © 2026 FirePlugins All Rights Reserved |
| 9 |
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later |
| 10 |
*/ |
| 11 |
|
| 12 |
namespace FireBox\Core\API; |
| 13 |
|
| 14 |
if (!defined('ABSPATH')) |
| 15 |
{ |
| 16 |
exit; // Exit if accessed directly. |
| 17 |
} |
| 18 |
|
| 19 |
class Manager |
| 20 |
{ |
| 21 |
/** |
| 22 |
* Root Namespace of the API calls |
| 23 |
* |
| 24 |
* @var string |
| 25 |
*/ |
| 26 |
const ROOT_NAMESPACE = 'firebox'; |
| 27 |
|
| 28 |
/** |
| 29 |
* REST base name. |
| 30 |
* |
| 31 |
* With empty REST base: |
| 32 |
* /{ROOT_NAMESPACE}/v{VERSION}/{ENDPOINT} |
| 33 |
* |
| 34 |
* With valid REST base: |
| 35 |
* /{ROOT_NAMESPACE}/v{VERSION}/{REST_BASE}/{ENDPOINT} |
| 36 |
* |
| 37 |
* @var string |
| 38 |
*/ |
| 39 |
const REST_BASE = ''; |
| 40 |
|
| 41 |
/** |
| 42 |
* Version of API |
| 43 |
* |
| 44 |
* @var string |
| 45 |
*/ |
| 46 |
const VERSION = '1'; |
| 47 |
} |