yjp пре 2 недеља
родитељ
комит
f14ace432d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      framework/core/api/router.go

+ 1 - 1
framework/core/api/router.go

@@ -236,7 +236,7 @@ func parseRelativePathPerm(basePath string, relativePathPattern string, method s
 	re := regexp.MustCompile(`\$\{(.+)\}\$`)
 	matches := re.FindStringSubmatch(relativePathPattern)
 
-	if len(matches) == 1 {
+	if len(matches) == 0 {
 		return relativePathPattern, nil, nil
 	}