From 1254369d3e1791447bc5f0e01058caba99ac4bfc Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Fri, 7 Oct 2016 17:48:57 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=20GitHub=20=D0=BF=D0=BE=D0=B4?= =?UTF-8?q?=D0=BA=D0=B8=D0=BD=D1=83=D0=BB=D0=B8=20=D0=B8=D0=B4=D0=B5=D1=8E?= =?UTF-8?q?,=20=D0=BA=D0=B0=D0=BA=20=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BF=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6=D0=BA=D1=83?= =?UTF-8?q?=20http=20=D0=B8=20https=20=D0=BE=D0=B4=D0=BD=D0=BE=D0=B2=D1=80?= =?UTF-8?q?=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/config/routes.php | 9 +++------ api/modules/authserver/Module.php | 3 +-- 2 files changed, 4 insertions(+), 8 deletions(-) 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); }