diff --git a/api/config/routes.php b/api/config/routes.php index 11be512..ca7ede9 100644 --- a/api/config/routes.php +++ b/api/config/routes.php @@ -21,10 +21,7 @@ return [ '/mojang/profiles//names' => 'mojang/api/usernames-by-uuid', 'POST /mojang/profiles' => 'mojang/api/uuids-by-usernames', - "http://{$params['authserverHost']}/mojang/api/users/profiles/minecraft/" => 'mojang/api/uuid-by-username', - "http://{$params['authserverHost']}/mojang/api/user/profiles//names" => 'mojang/api/usernames-by-uuid', - "POST http://{$params['authserverHost']}/mojang/api/profiles/minecraft" => 'mojang/api/uuids-by-usernames', - "https://{$params['authserverHost']}/mojang/api/users/profiles/minecraft/" => 'mojang/api/uuid-by-username', - "https://{$params['authserverHost']}/mojang/api/user/profiles//names" => 'mojang/api/usernames-by-uuid', - "POST https://{$params['authserverHost']}/mojang/api/profiles/minecraft" => 'mojang/api/uuids-by-usernames', + "://{$params['authserverHost']}/mojang/api/users/profiles/minecraft/" => 'mojang/api/uuid-by-username', + "://{$params['authserverHost']}/mojang/api/user/profiles//names" => 'mojang/api/usernames-by-uuid', + "POST ://{$params['authserverHost']}/mojang/api/profiles/minecraft" => 'mojang/api/uuids-by-usernames', ]; diff --git a/api/modules/authserver/Module.php b/api/modules/authserver/Module.php index 9531fd2..f6db2dc 100644 --- a/api/modules/authserver/Module.php +++ b/api/modules/authserver/Module.php @@ -39,8 +39,7 @@ class Module extends \yii\base\Module implements BootstrapInterface { */ public function bootstrap($app) { $app->getUrlManager()->addRules([ - "http://$this->host/$this->id/auth/" => "$this->id/authentication/", - "https://$this->host/$this->id/auth/" => "$this->id/authentication/", + "://$this->host/$this->id/auth/" => "$this->id/authentication/", ], false); }