Routes is collection of RouteInfo instances with various helper methods.

Hierarchy

Methods

  • FilterByMethod searched for matching route info by method

    Parameters

    • method: string

    Returns Routes

  • FilterByName searched for matching route info by name

    Parameters

    • name: string

    Returns Routes

  • FilterByPath searched for matching route info by path

    Parameters

    • path: string

    Returns Routes

  • FindByMethodPath searched for matching route info by method and path

    Parameters

    • method: string
    • path: string

    Returns RouteInfo

  • Reverse reverses route to URL string by replacing path parameters with given params values.

    Parameters

    • name: string
    • Rest ...params: {}[]

    Returns string

Generated using TypeDoc