Added middleware, routing, sending file but with weird seg fault