Fix controllers by passing in server object. Change to routes.