mirror of
				https://github.com/elyby/accounts.git
				synced 2025-05-31 14:11:46 +05:30 
			
		
		
		
	Продублированы роуты для https запросов, пока не ответят в https://github.com/yiisoft/yii2/issues/12691
This commit is contained in:
		@@ -24,4 +24,7 @@ return [
 | 
			
		||||
    "http://{$params['authserverHost']}/mojang/api/users/profiles/minecraft/<username>" => 'mojang/api/uuid-by-username',
 | 
			
		||||
    "http://{$params['authserverHost']}/mojang/api/user/profiles/<uuid>/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/<username>" => 'mojang/api/uuid-by-username',
 | 
			
		||||
    "https://{$params['authserverHost']}/mojang/api/user/profiles/<uuid>/names" => 'mojang/api/usernames-by-uuid',
 | 
			
		||||
    "POST https://{$params['authserverHost']}/mojang/api/profiles/minecraft" => 'mojang/api/uuids-by-usernames',
 | 
			
		||||
];
 | 
			
		||||
 
 | 
			
		||||
@@ -40,6 +40,7 @@ class Module extends \yii\base\Module implements BootstrapInterface {
 | 
			
		||||
    public function bootstrap($app) {
 | 
			
		||||
        $app->getUrlManager()->addRules([
 | 
			
		||||
            "http://$this->host/$this->id/auth/<action>" => "$this->id/authentication/<action>",
 | 
			
		||||
            "https://$this->host/$this->id/auth/<action>" => "$this->id/authentication/<action>",
 | 
			
		||||
        ], false);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user