优化参数查询
This commit is contained in:
parent
213ba47a8b
commit
461c734a6e
|
@ -56,7 +56,7 @@ func AdminAuth() gin.HandlerFunc {
|
||||||
|
|
||||||
func ValidateRequest() gin.HandlerFunc {
|
func ValidateRequest() gin.HandlerFunc {
|
||||||
return func(c *gin.Context) {
|
return func(c *gin.Context) {
|
||||||
var path = c.Request.RequestURI
|
var path = c.FullPath()
|
||||||
var handler func() interface{}
|
var handler func() interface{}
|
||||||
if strings.Index(path, "admin") >= 0 {
|
if strings.Index(path, "admin") >= 0 {
|
||||||
handler = requestmapping.BackendRequestMap[path]
|
handler = requestmapping.BackendRequestMap[path]
|
||||||
|
|
Loading…
Reference in New Issue