fix route path

This commit is contained in:
xmdhs 2023-09-10 17:17:09 +08:00
parent fc727c87a3
commit 40c473d213
No known key found for this signature in database
GPG Key ID: E809D6D43DEFCC95
2 changed files with 2 additions and 1 deletions

View File

@ -132,6 +132,7 @@ func (y *Yggdrasil) GetProfile() httprouter.Handle {
case "true":
case "false":
unsignedBool = false
case "":
default:
y.logger.DebugContext(ctx, "unsigned 参数类型错误")
handleYgError(ctx, w, yggdrasil.Error{ErrorMessage: "unsigned 参数类型错误"}, 400)

View File

@ -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.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) {
w.Write([]byte(`{