diff --git a/app/http/middlewares/base.go b/app/http/middlewares/base.go index b9fe55c..c333221 100644 --- a/app/http/middlewares/base.go +++ b/app/http/middlewares/base.go @@ -56,7 +56,7 @@ func AdminAuth() gin.HandlerFunc { func ValidateRequest() gin.HandlerFunc { return func(c *gin.Context) { - var path = c.Request.RequestURI + var path = c.FullPath() var handler func() interface{} if strings.Index(path, "admin") >= 0 { handler = requestmapping.BackendRequestMap[path]