| @@ -5,8 +5,9 @@ | ||
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | 7 | namespace Extendify\Shared\Controllers; |
| 8 | 8 | |
| 9 | +use Extendify\Constants; | |
| 9 | 10 | use Extendify\Shared\Services\HttpClient; |
| 10 | 11 | use Extendify\PartnerData; |
| 11 | 12 | |
| 12 | 13 | defined('ABSPATH') || die('No direct access.'); |
| @@ -24,9 +25,9 @@ | ||
| 24 | 25 | */ |
| 25 | 26 | public static function getPartnerPlugins() |
| 26 | 27 | { |
| 27 | 28 | $response = HttpClient::get( |
| 28 | - 'https://dashboard.extendify.com/api/onboarding/partner-plugins', | |
| 29 | + Constants::DASHBOARD_HOST . '/api/onboarding/partner-plugins', | |
| 29 | 30 | ['params' => ['partner' => PartnerData::$id]] |
| 30 | 31 | ); |
| 31 | 32 | |
| 32 | 33 | return new \WP_REST_Response($response['response'], $response['code']); |
| @@ -32,9 +33,9 @@ | ||
| 32 | 33 | return new \WP_REST_Response($response['response'], $response['code']); |
| 33 | 34 | } |
| 34 | 35 | |
| 35 | 36 | /** |
| 36 | - * Just here to check for 200 (vs server rate limting) | |
| 37 | + * Just here to check for 200 (vs server rate limiting) | |
| 37 | 38 | * |
| 38 | 39 | * @return \WP_REST_Response |
| 39 | 40 | */ |
| 40 | 41 | public static function ping() |