private string GetFunctionRouteTemplate()

in src/WebJobs.Extensions.Http/Routing/WebJobsRouter.cs [91:110]


        private string GetFunctionRouteTemplate(RouteCollection routes, string functionName)
        {
            for (int i = 0; i < routes.Count; i++)
            {
                switch (routes[i])
                {
                    case Route functionRoute when IsFunctionRoute(functionRoute, functionName):
                        return functionRoute.RouteTemplate;
                    case RouteCollection collection:
                        string template = GetFunctionRouteTemplate(collection, functionName);
                        if (template != null)
                        {
                            return template;
                        }
                        break;
                }
            }

            return null;
        }