Example using middleware to serve static file