Merge pull request #3 from Octol1ttle/add-minecraftservices

update: add new username->UUID endpoint
This commit is contained in:
ErickSkrauch
2025-02-14 11:05:24 +01:00
committed by GitHub

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