nix-builder-autoscaler/agent/nix_builder_autoscaler/api.py

20 lines
414 B
Python
Raw Normal View History

2026-02-27 11:59:16 +01:00
"""FastAPI application — stub for Plan 04."""
from __future__ import annotations
from fastapi import FastAPI
def create_app() -> FastAPI:
"""Create the FastAPI application.
Full implementation in Plan 04.
"""
app = FastAPI(title="nix-builder-autoscaler", version="0.1.0")
@app.get("/health/live")
def health_live() -> dict[str, str]:
return {"status": "ok"}
return app