expose request on server model
Move model.req statement inside of if block