20 lines
414 B
Python
20 lines
414 B
Python
|
|
"""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
|