Added option to send req and res to Apostrophe