add-render-state-endpoint-option.php
2 years ago
delete-render-states-endpoint.php
2 years ago
rest-api-controller.php
2 years ago
rest-api-controller.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Blocks\Conditional_Block\Rest_Api; |
| 5 | |
| 6 | use Jet_Form_Builder\Rest_Api\Rest_Api_Controller_Base; |
| 7 | use Jet_Form_Builder\Rest_Api\Rest_Api_Endpoint_Base; |
| 8 | |
| 9 | // If this file is called directly, abort. |
| 10 | if ( ! defined( 'WPINC' ) ) { |
| 11 | die; |
| 12 | } |
| 13 | |
| 14 | class Rest_Api_Controller extends Rest_Api_Controller_Base { |
| 15 | |
| 16 | /** |
| 17 | * @return Rest_Api_Endpoint_Base[] |
| 18 | */ |
| 19 | public function routes(): array { |
| 20 | return array( |
| 21 | new Add_Render_State_Endpoint_Option(), |
| 22 | new Delete_Render_States_Endpoint(), |
| 23 | ); |
| 24 | } |
| 25 | } |
| 26 |