change: add minecraftservices route for Username->UUID

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2025-02-11 17:21:46 +05:00
parent ebe85fba93
commit fff21c9c94
No known key found for this signature in database
GPG Key ID: B77C34313AEE1FFF

View File

@ -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) {