| @@ -1,10 +1,13 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | namespace Leadin; |
| 4 | 4 | |
| 5 | +if ( ! defined( 'ABSPATH' ) ) exit; | |
| 6 | + | |
| 7 | +use Leadin\admin\api\WP_Mappings_Api_Controller; | |
| 8 | +use Leadin\api\Access_Token_Api_Controller; | |
| 5 | 9 | use Leadin\api\Healthcheck_Api_Controller; |
| 6 | -use Leadin\api\OAuth_Api_Controller; | |
| 7 | 10 | |
| 8 | 11 | use Leadin\admin\api\Internal_Tracking_Api_Controller; |
| 9 | 12 | use Leadin\admin\api\Hublet_Api_Controller; |
| 10 | 13 | use Leadin\admin\api\User_Meta_Api_Controller; |
| @@ -19,11 +22,12 @@ | ||
| 19 | 22 | * Register api endpoints. |
| 20 | 23 | */ |
| 21 | 24 | function leadin_register_routes() { |
| 22 | 25 | new Healthcheck_Api_Controller(); |
| 23 | - new OAuth_Api_Controller(); | |
| 26 | + new Access_Token_Api_Controller(); | |
| 24 | 27 | // Admin routes. |
| 25 | 28 | new Internal_Tracking_Api_Controller(); |
| 26 | 29 | new Hublet_Api_Controller(); |
| 27 | 30 | new User_Meta_Api_Controller(); |
| 28 | 31 | new Portal_Api_Controller(); |
| 32 | + new WP_Mappings_Api_Controller(); | |
| 29 | 33 | } |