mirror of
https://github.com/elyby/accounts-profiles-endpoint.git
synced 2025-05-31 14:11:56 +05:30
Merge pull request #3 from Octol1ttle/add-minecraftservices
update: add new username->UUID endpoint
This commit is contained in:
@@ -54,6 +54,7 @@ func NewMojangApi(
|
|||||||
func (s *MojangApi) DefineRoutes(r gin.IRouter) {
|
func (s *MojangApi) DefineRoutes(r gin.IRouter) {
|
||||||
r.GET("/api/minecraft/session/profile/:uuid", s.getProfileByUuidHandler)
|
r.GET("/api/minecraft/session/profile/:uuid", s.getProfileByUuidHandler)
|
||||||
r.GET("/api/mojang/profiles/:username", s.getUuidByUsernameHandler)
|
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) {
|
func (s *MojangApi) getProfileByUuidHandler(c *gin.Context) {
|
||||||
|
Reference in New Issue
Block a user