Update to export the req and res