| @@ -20,22 +20,26 @@ | ||
| 20 | 20 | */ |
| 21 | 21 | public function rest_api_includes() { |
| 22 | 22 | parent::rest_api_includes(); |
| 23 | 23 | |
| 24 | - $list_rest_fontend = array( | |
| 24 | + $list_rest_frontend = array( | |
| 25 | 25 | 'class-lp-rest-settings-controller.php', |
| 26 | 26 | 'class-lp-rest-users-controller.php', |
| 27 | 27 | 'class-lp-rest-courses-controller.php', |
| 28 | 28 | 'class-lp-rest-lazy-load-controller.php', |
| 29 | 29 | 'class-lp-rest-profile-controller.php', |
| 30 | - 'class-lp-rest-orders-controller.php', | |
| 31 | 30 | 'class-lp-rest-widgets-controller.php', |
| 31 | + 'class-lp-rest-addon-controller.php', | |
| 32 | + 'class-lp-rest-material-controller.php', | |
| 33 | + 'class-lp-rest-instructor-controller.php', | |
| 34 | + 'class-lp-rest-ajax-controller.php', | |
| 35 | + 'class-lp-rest-gateway-webhook-controller.php', | |
| 32 | 36 | ); |
| 33 | 37 | |
| 34 | 38 | $path_version = $this->version . '/frontend/'; |
| 35 | 39 | $path_rest_api = LP_PLUGIN_PATH . 'inc/rest-api/' . $path_version; |
| 36 | 40 | |
| 37 | - foreach ( $list_rest_fontend as $rest_frontend ) { | |
| 41 | + foreach ( $list_rest_frontend as $rest_frontend ) { | |
| 38 | 42 | include_once realpath( $path_rest_api . $rest_frontend ); |
| 39 | 43 | } |
| 40 | 44 | |
| 41 | 45 | do_action( 'learn-press/core-api/includes' ); |
| @@ -47,10 +51,14 @@ | ||
| 47 | 51 | 'LP_REST_Users_Controller', |
| 48 | 52 | 'LP_REST_Courses_Controller', |
| 49 | 53 | 'LP_REST_Lazy_Load_Controller', |
| 50 | 54 | 'LP_REST_Profile_Controller', |
| 51 | - 'LP_REST_Orders_Controller', | |
| 52 | 55 | 'LP_REST_Widgets_Controller', |
| 56 | + 'LP_REST_Addon_Controller', | |
| 57 | + 'LP_Rest_Material_Controller', | |
| 58 | + 'LP_REST_Instructor_Controller', | |
| 59 | + 'LP_REST_AJAX_Controller', | |
| 60 | + 'LP_REST_Gateway_Webhook_Controller', | |
| 53 | 61 | ); |
| 54 | 62 | |
| 55 | 63 | $this->controllers = apply_filters( 'learn-press/core-api/controllers', $controllers ); |
| 56 | 64 | |