Mounts a route and associates it with the given view.
The route is mounted with all middlewares that are defined in the current scope.