action-types
1 year ago
admin
1 year ago
assets
1 year ago
constraints
2 years ago
export
2 years ago
models
2 years ago
query-views
1 year ago
rest-endpoints
1 year ago
controller.php
1 year ago
module.php
1 year ago
records-rest-controller.php
2 years ago
tools.php
2 years ago
records-rest-controller.php
31 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace JFB_Modules\Form_Record; |
| 5 | |
| 6 | use JFB_Modules\Form_Record\Rest_Endpoints; |
| 7 | use JFB_Components\Rest_Api\Rest_Api_Controller_Base; |
| 8 | |
| 9 | // If this file is called directly, abort. |
| 10 | if ( ! defined( 'WPINC' ) ) { |
| 11 | die; |
| 12 | } |
| 13 | |
| 14 | class Records_Rest_Controller extends Rest_Api_Controller_Base { |
| 15 | |
| 16 | /** |
| 17 | * @inheritDoc |
| 18 | */ |
| 19 | public function routes(): array { |
| 20 | return array( |
| 21 | new Rest_Endpoints\Fetch_Filters_Endpoint(), |
| 22 | new Rest_Endpoints\Delete_Form_Record_Endpoint(), |
| 23 | new Rest_Endpoints\Mark_As_Not_Viewed_Record_Endpoint(), |
| 24 | new Rest_Endpoints\Mark_As_Viewed_Record_Endpoint(), |
| 25 | new Rest_Endpoints\Fetch_Records_Page_Endpoint(), |
| 26 | new Rest_Endpoints\Fetch_Records_Fields_Box_Endpoint(), |
| 27 | new Rest_Endpoints\Fetch_Records_Count_Endpoint(), |
| 28 | ); |
| 29 | } |
| 30 | } |
| 31 |