| @@ -1,8 +1,15 @@ | ||
| 1 | 1 | <?php |
| 2 | +/** | |
| 3 | + * REST API bootstrap. | |
| 4 | + * | |
| 5 | + * @package SpringDevs\Subscription | |
| 6 | + */ | |
| 2 | 7 | |
| 3 | 8 | namespace SpringDevs\Subscription; |
| 4 | 9 | |
| 10 | +use SpringDevs\Subscription\Api\PlanController; | |
| 11 | + | |
| 5 | 12 | /** |
| 6 | 13 | * API Class |
| 7 | 14 | */ |
| 8 | 15 | class API { |
| @@ -20,6 +27,7 @@ | ||
| 20 | 27 | * |
| 21 | 28 | * @return void |
| 22 | 29 | */ |
| 23 | 30 | public function register_api() { |
| 31 | + ( new PlanController() )->register_routes(); | |
| 24 | 32 | } |
| 25 | 33 | } |