1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-19 02:47:04 +00:00
Former-commit-id: 1e2c7185fc3c536ceb8b269c75b9a2c19323960b
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-09-07 05:57:35 +03:00
parent 6fa75f7b51
commit da73c1817f
6 changed files with 30 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ import (
"github.com/kataras/iris/macro"
)
func getPathParamsForInput(params []macro.TemplateParam, funcIn ...reflect.Type) (values []reflect.Value) {
func getPathParamsForInput(startParamIndex int, params []macro.TemplateParam, funcIn ...reflect.Type) (values []reflect.Value) {
if len(funcIn) == 0 || len(params) == 0 {
return
}
@@ -42,7 +42,7 @@ func getPathParamsForInput(params []macro.TemplateParam, funcIn ...reflect.Type)
continue
}
funcDep, ok := context.ParamResolverByTypeAndIndex(in, param.Index)
funcDep, ok := context.ParamResolverByTypeAndIndex(in, startParamIndex+param.Index)
if !ok {
continue
}