rihancloud's picture
Deploy clean FastAPI backend without node_modules
99fdb5f
Raw History Blame Contribute Delete
200 Bytes
from fastapi.responses import FileResponse
def send_file(path: str):
return FileResponse(
path,
filename=path.split("/")[-1],
media_type="application/octet-stream"
)