Add after hooks to all routes.