Controller.php
34 lines
| 1 | <?php |
| 2 | /** |
| 3 | * REST API Reports downloads files controller |
| 4 | * |
| 5 | * Handles requests to the /reports/downloads/files endpoint. |
| 6 | */ |
| 7 | |
| 8 | namespace Automattic\WooCommerce\Admin\API\Reports\Downloads\Files; |
| 9 | |
| 10 | defined( 'ABSPATH' ) || exit; |
| 11 | |
| 12 | /** |
| 13 | * REST API Reports downloads files controller class. |
| 14 | * |
| 15 | * @internal |
| 16 | * @extends WC_REST_Reports_Controller |
| 17 | */ |
| 18 | class Controller extends \WC_REST_Reports_Controller { |
| 19 | |
| 20 | /** |
| 21 | * Endpoint namespace. |
| 22 | * |
| 23 | * @var string |
| 24 | */ |
| 25 | protected $namespace = 'wc-analytics'; |
| 26 | |
| 27 | /** |
| 28 | * Route base. |
| 29 | * |
| 30 | * @var string |
| 31 | */ |
| 32 | protected $rest_base = 'reports/downloads/files'; |
| 33 | } |
| 34 |