Skip to content

Commit 76e1f32

Browse files
authored
Merge pull request #3 from Octol1ttle/add-minecraftservices
update: add new username->UUID endpoint
2 parents ebe85fb + fff21c9 commit 76e1f32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/http/mojang_api.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ func NewMojangApi(
5454
func (s *MojangApi) DefineRoutes(r gin.IRouter) {
5555
r.GET("/api/minecraft/session/profile/:uuid", s.getProfileByUuidHandler)
5656
r.GET("/api/mojang/profiles/:username", s.getUuidByUsernameHandler)
57+
r.GET("/api/mojang/services/minecraft/profile/lookup/name/:username", s.getUuidByUsernameHandler)
5758
}
5859

5960
func (s *MojangApi) getProfileByUuidHandler(c *gin.Context) {

0 commit comments

Comments
 (0)