implement S3 garage on the backend
This commit is contained in:
1 parent
0444ce46ef
commit
4786c625c1
1 file changed
+2
-2
@@ -1,10 +1,10 @@
|
||||
from botocore.exceptions import ClientError
|
||||
from fastapi import APIRoute, APIRouter, HTTPException
|
||||
from fastapi import APIRouter, HTTPException
|
||||
from fastapi.responses import StreamingResponse
|
||||
|
||||
from app.s3 import BUCKET_NAME, s3_client
|
||||
|
||||
router = APIRouter(prefix="/media", tags=["media"])
|
||||
router = APIRouter(prefix="/media", tags=["Media"])
|
||||
|
||||
|
||||
@router.get("/{file_path:path}")
|
||||
|
||||
Reference in new issue
Block a user