mirror of
https://github.com/elyby/accounts-profiles-endpoint.git
synced 2025-03-13 03:09:19 +05:30
change: add minecraftservices route for Username->UUID
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
ebe85fba93
commit
fff21c9c94
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user