17 lines
357 B
Python
17 lines
357 B
Python
from __future__ import annotations
|
|
|
|
from fastapi import FastAPI
|
|
|
|
|
|
app = FastAPI(title="SFERA Worker", version="0.1.0")
|
|
|
|
|
|
@app.get("/health")
|
|
async def health() -> dict[str, str]:
|
|
return {"status": "ok", "service": "sfera-worker"}
|
|
|
|
|
|
@app.get("/api/health")
|
|
async def api_health() -> dict[str, str]:
|
|
return {"status": "ok", "service": "sfera-worker"}
|