Represents a route
var route = new Route('/:foo/:bar');
Match a path against this route, returning the matched parameters if it matches, false if not.
var route = new Route('/this/is/my/route') route.match('/this/is/my/route') // -> {}
var route = new Route('/:one/:two') route.match('/foo/bar/') // -> {one: 'foo', two: 'bar'}
Reverse a route specification to a path, returning false if it can't be fulfilled
var route = new Route('/:one/:two') route.reverse({one: 'foo', two: 'bar'}) -> '/foo/bar'
Generated using TypeDoc
Represents a route
var route = new Route('/:foo/:bar');
var route = new Route('/:foo/:bar');