mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Add a redirect for new Usernames to UUIDs endpoint (#29)
* fix: add redirect for new "Usernames to UUIDs" endpoint location "As of 23w42a, the endpoint moved to: 'POST https://sessionserver.mojang.com/session/minecraft/profile/lookup/bulk/byname' " https://wiki.vg/Mojang_API#Usernames_to_UUIDs * add a redirect for authlib-injector too Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com> * revert: .gitignore Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com> * tests: pass new URL to existing tests Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com> * review: address requested changes Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com> * style: add type hints to MinecraftProfilesCest functions too Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com> --------- Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
@@ -11,9 +11,4 @@ class MojangApiRoute extends BasePage {
|
||||
public function usernamesByUuid($uuid) {
|
||||
$this->getActor()->sendGET("/api/mojang/profiles/{$uuid}/names");
|
||||
}
|
||||
|
||||
public function uuidsByUsernames($uuids) {
|
||||
$this->getActor()->sendPOST('/api/mojang/profiles', $uuids);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user