A utility function to add a route to a route map by path.
Existing route map to append to.
Route definition to add to the map.
Optional base path prefix to apply to the route path.
New route map with the route appended.
A utility function to add a route to a route map by path.