From fff21c9c94cbc5faa077906955b96e963194d867 Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Tue, 11 Feb 2025 17:21:46 +0500 Subject: [PATCH] change: add minecraftservices route for Username->UUID Signed-off-by: Octol1ttle --- internal/http/mojang_api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/http/mojang_api.go b/internal/http/mojang_api.go index a5f597c..268bcc5 100644 --- a/internal/http/mojang_api.go +++ b/internal/http/mojang_api.go @@ -54,6 +54,7 @@ func NewMojangApi( func (s *MojangApi) DefineRoutes(r gin.IRouter) { r.GET("/api/minecraft/session/profile/:uuid", s.getProfileByUuidHandler) r.GET("/api/mojang/profiles/:username", s.getUuidByUsernameHandler) + r.GET("/api/mojang/services/minecraft/profile/lookup/name/:username", s.getUuidByUsernameHandler) } func (s *MojangApi) getProfileByUuidHandler(c *gin.Context) {