Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /pbylicki_rfhub2 /rfhub2 /api /endpoints /healthcheck.py
| from fastapi import APIRouter, Depends | |
| from starlette.responses import Response | |
| from rfhub2.api.utils.db import db_healthcheck | |
| from rfhub2.model import Healthcheck | |
| router = APIRouter() | |
| def healthcheck(response: Response, db_status: bool = Depends(db_healthcheck)): | |
| if db_status: | |
| return Healthcheck(**{"db": "ok"}) | |
| else: | |
| response.status_code = 503 | |
| return Healthcheck(**{"db": "failure"}) | |
Xet Storage Details
- Size:
- 468 Bytes
- Xet hash:
- 366c31165315351eb8cb1f8d3817d29aeb8074c949e8135a9b65b0f57ede9db2
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.