1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-19 02:47:04 +00:00

add support for b.HandleMany(GET, /custom3/{ps:string}/{pssecond:string} /custom3/{ps:string}, CtrlMethodName) relative to: https://github.com/kataras/iris/issues/1292

Former-commit-id: de08c5eeab7a1c2729fbff7260de00cc2516f78c
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-07-11 16:33:20 +03:00
parent f8d19b3ed2
commit 657e0133d0
3 changed files with 67 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ func getPathParamsForInput(params []macro.TemplateParam, funcIn ...reflect.Type)
if _, ok := consumed[j]; ok {
continue
}
funcDep, ok := context.ParamResolverByTypeAndIndex(in, param.Index)
if !ok {
continue