add a route handler

the route handler delegates the function of routeing the path to the
router. This is a separate layer in case aditional functionality needs
to be added.