1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 12:57:05 +00:00
This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-04-18 10:52:47 +03:00
parent e98c21d1c5
commit 1e5cbf9e24
3 changed files with 7 additions and 4 deletions

View File

@@ -43,7 +43,8 @@ func convertMacroTmplToNodePath(tmpl macro.Template) string {
// if it has started with {} and it's valid
// then the tmpl.Params will be filled,
// so no any further check needed.
for _, p := range tmpl.Params {
for i := range tmpl.Params {
p := tmpl.Params[i]
if ast.IsTrailing(p.Type) {
routePath = strings.Replace(routePath, p.Src, WildcardParam(p.Name), 1)
} else {