diff --git a/backend/internal/app/router/tool.go b/backend/internal/app/router/tool.go index 9f37d887..3dc74a99 100644 --- a/backend/internal/app/router/tool.go +++ b/backend/internal/app/router/tool.go @@ -34,10 +34,11 @@ func LookupApp(c *gin.Context, q interface{}) (context.Context, *instance.Instan if err = c.ShouldBindJSON(q); err != nil { return ctx, nil, http.StatusBadRequest, err } - } - - if err = c.ShouldBindQuery(q); err != nil { - return ctx, nil, http.StatusBadRequest, err + } else { + logger.Debug("bind get query") + if err = c.ShouldBindQuery(q); err != nil { + return ctx, nil, http.StatusBadRequest, err + } } logger.Debug("parse app model")