mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Реализован функционал Mojang API
Исправлена ошибка доступа к authserver из-за перехода на использование хостов, а не доменов
This commit is contained in:
@@ -70,10 +70,13 @@ return [
|
||||
'modules' => [
|
||||
'authserver' => [
|
||||
'class' => api\modules\authserver\Module::class,
|
||||
'baseDomain' => getenv('AUTHSERVER_HOST'),
|
||||
'host' => $params['authserverHost'],
|
||||
],
|
||||
'session' => [
|
||||
'class' => api\modules\session\Module::class,
|
||||
],
|
||||
'mojang' => [
|
||||
'class' => api\modules\mojang\Module::class,
|
||||
],
|
||||
],
|
||||
];
|
||||
|
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @var array $params
|
||||
*/
|
||||
return [
|
||||
'/accounts/change-email/initialize' => 'accounts/change-email-initialize',
|
||||
'/accounts/change-email/submit-new-email' => 'accounts/change-email-submit-new-email',
|
||||
@@ -13,4 +16,12 @@ return [
|
||||
'/minecraft/session/hasJoined' => 'session/session/has-joined',
|
||||
'/minecraft/session/legacy/hasJoined' => 'session/session/has-joined-legacy',
|
||||
'/minecraft/session/profile/<uuid>' => 'session/session/profile',
|
||||
|
||||
'/mojang/profiles/<username>' => 'mojang/api/uuid-by-username',
|
||||
'/mojang/profiles/<uuid>/names' => 'mojang/api/usernames-by-uuid',
|
||||
'POST /mojang/profiles' => 'mojang/api/uuids-by-usernames',
|
||||
|
||||
"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',
|
||||
];
|
||||
|
Reference in New Issue
Block a user