Represents a router that handles routing and matching of URL paths to handler functions.
new
Router(dividers?: string[])
Creates a new instance of the Constructor class.
Returns the string representation of the current object.
The string representation is obtained by calling the toString
method of the root
property.
private
dividerRegex: RegExp
private
groupPrefix: string[]
Applies a group of routes to the current router.
Matches a given path against the routes defined in the router.