FastAPI - File Handling
Identify the error in this FastAPI endpoint for file download:
from fastapi import FastAPI
from fastapi.responses import FileResponse
app = FastAPI()
@app.get('/getfile')
def get_file():
return FileResponse(path='myfile.txt', media_type='text/plain', filename=myfile.txt)