fix route path
This commit is contained in:
parent
fc727c87a3
commit
40c473d213
@ -132,6 +132,7 @@ func (y *Yggdrasil) GetProfile() httprouter.Handle {
|
|||||||
case "true":
|
case "true":
|
||||||
case "false":
|
case "false":
|
||||||
unsignedBool = false
|
unsignedBool = false
|
||||||
|
case "":
|
||||||
default:
|
default:
|
||||||
y.logger.DebugContext(ctx, "unsigned 参数类型错误")
|
y.logger.DebugContext(ctx, "unsigned 参数类型错误")
|
||||||
handleYgError(ctx, w, yggdrasil.Error{ErrorMessage: "unsigned 参数类型错误"}, 400)
|
handleYgError(ctx, w, yggdrasil.Error{ErrorMessage: "unsigned 参数类型错误"}, 400)
|
||||||
|
@ -32,7 +32,7 @@ func newYggdrasil(r *httprouter.Router, handelY yggdrasil.Yggdrasil) error {
|
|||||||
r.PUT("/api/yggdrasil/api/user/profile/:uuid/:textureType", handelY.PutTexture())
|
r.PUT("/api/yggdrasil/api/user/profile/:uuid/:textureType", handelY.PutTexture())
|
||||||
r.DELETE("/api/yggdrasil/api/user/profile/:uuid/:textureType", warpHJSON(handelY.DelTexture()))
|
r.DELETE("/api/yggdrasil/api/user/profile/:uuid/:textureType", warpHJSON(handelY.DelTexture()))
|
||||||
|
|
||||||
r.GET("/sessionserver/session/minecraft/profile/:uuid", handelY.GetProfile())
|
r.GET("/api/yggdrasil/sessionserver/session/minecraft/profile/:uuid", handelY.GetProfile())
|
||||||
|
|
||||||
r.GET("/api/yggdrasil", func(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
|
r.GET("/api/yggdrasil", func(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
|
||||||
w.Write([]byte(`{
|
w.Write([]byte(`{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user