FastAPI - File Handling
Find the bug in this FastAPI file download code:
from fastapi import FastAPI
from fastapi.responses import FileResponse
app = FastAPI()
@app.get('/file')
async def file():
return FileResponse('static/data.csv', filename='data.csv', content_type='text/csv')