Buckets:
AnonymousSpottedToad/human_verified_bucket / codebase /python /JeanExtreme002_Dokku-API /src /api /routers /upload.py
| from fastapi import APIRouter, Depends, FastAPI, File, UploadFile, status | |
| from fastapi.responses import JSONResponse | |
| from sqlalchemy.ext.asyncio import AsyncSession | |
| from src.api.models import get_db_session | |
| from src.api.services import GitService | |
| def get_router(app: FastAPI) -> APIRouter: | |
| router = APIRouter() | |
| async def deploy_app( | |
| file: UploadFile = File(...), | |
| wait: bool = False, | |
| db_session: AsyncSession = Depends(get_db_session), | |
| ): | |
| success, result = await GitService.deploy_application( | |
| file, db_session, wait=wait | |
| ) | |
| return JSONResponse( | |
| status_code=status.HTTP_200_OK, | |
| content={ | |
| "success": success, | |
| "result": result, | |
| }, | |
| ) | |
| return router | |
Xet Storage Details
- Size:
- 868 Bytes
- Xet hash:
- 07b19118bcac0440b9936e62f0d90304e93607750d440853bb4d611126561fa5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.