added routesegment, splits a route's url into segments in route constructor