| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function __construct( $api_namespace = 'invoicing/v1' ) { |
||
| 36 | |||
| 37 | // Include controllers and related files |
||
| 38 | $this->includes(); |
||
| 39 | |||
| 40 | // Set up class variables |
||
| 41 | $this->api_namespace = apply_filters( 'wpinv_rest_api_namespace', $api_namespace ); |
||
| 42 | $this->invoices_controller = new WPInv_REST_Invoice_Controller( $this->api_namespace ); |
||
| 43 | |||
| 44 | //Register REST routes |
||
| 45 | add_action( 'rest_api_init', array( $this, 'register_rest_routes' ) ); |
||
| 46 | } |
||
| 47 | |||
| 75 | } |