Nancy.RouteHelpers/RouteParameters.cs
/// <summary>
/// Creates a route that expects at least one integer, for example, /products/123
/// </summary>
/// <param name="NamedGroup">The name of the parameter in the route</param>
/// <returns></returns>
Creates a route that expects at least one integer, for example, /products/123
Creates a route that expects at least one integer for example / products / 123
public RouteParameters AnyIntAtLeastOnce(string NamedGroup)
        {
            RouteBuilder.Append(@"(?<" + NamedGroup + @">[\d]+)");
            return this;
        }
public RouteParameters AnyIntAtLeastOnce ( string NamedGroup ) { RouteBuilder . Append ( @"(?<" + NamedGroup + @">[\d]+)" ) ; return this ; }
Creates a route that expects at least one integer, for example, /products/123
Creates a route that expects at least one integer for example / products / 123
None
NamedGroup
string
The name of the parameter in the route
The name of the parameter in the route