Route
Module: parch
Builds a consistent route path from a set of path segments
Constructor
Parameters:
-
segment
String multiple
Returns:
Object:
path object
Example:
new Route("foo", "/bar", "baz/");
/**
* {
* path: "/foo/bar/baz"
* segments: [
* RouteSegment,
* RouteSegment,
* RouteSegment
* ]
* }
*