endpoints
2 years ago
controller.php
2 years ago
forms-controller.php
2 years ago
module.php
2 years ago
controller.php
31 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace JFB_Modules\Rest_Api; |
| 5 | |
| 6 | use JFB_Components\Rest_Api\Rest_Api_Controller_Base; |
| 7 | use JFB_Modules\Rest_Api\Endpoints\Get_Form_Fields; |
| 8 | use JFB_Modules\Rest_Api\Endpoints\Install_Migrations_Endpoint; |
| 9 | |
| 10 | // If this file is called directly, abort. |
| 11 | if ( ! defined( 'WPINC' ) ) { |
| 12 | die; |
| 13 | } |
| 14 | |
| 15 | /** |
| 16 | * Here would be global rest-api endpoints |
| 17 | * |
| 18 | * Class Controller |
| 19 | * |
| 20 | * @package JFB_Modules\Rest_Api |
| 21 | */ |
| 22 | class Controller extends Rest_Api_Controller_Base { |
| 23 | |
| 24 | public function routes(): array { |
| 25 | return array( |
| 26 | new Get_Form_Fields(), |
| 27 | new Install_Migrations_Endpoint(), |
| 28 | ); |
| 29 | } |
| 30 | } |
| 31 |