Gateway: added some middleware to express