Turns out we don't have to hook into the routing at all because we can use request.scope.
request.scope