mirror of
https://github.com/fastapi/fastapi.git
synced 2025-12-30 09:39:20 -05:00
Co-authored-by: Yurii Motov <yurii.motov.monte@gmail.com> Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
11 lines
202 B
Python
11 lines
202 B
Python
from fastapi import FastAPI
|
|
from fastapi.responses import FileResponse
|
|
|
|
some_file_path = "large-video-file.mp4"
|
|
app = FastAPI()
|
|
|
|
|
|
@app.get("/")
|
|
async def main():
|
|
return FileResponse(some_file_path)
|