code: Grundgerüst und FastAPI-Health-Endpoint

This commit is contained in:
2026-06-10 07:44:42 +02:00
parent 9affaac82f
commit 1549acb90b
4 changed files with 65 additions and 25 deletions

17
app/main.py Normal file
View File

@@ -0,0 +1,17 @@
from fastapi import FastAPI
app = FastAPI(
title="SillyHome Next API",
description="Lokales Smart-Home-Intelligenzsystem für Home Assistant.",
version="0.1.0",
)
@app.get("/health")
def health() -> dict[str, str]:
return {"status": "ok"}
@app.get("/")
def root() -> dict[str, str]:
return {"service": "sillyhome-next", "docs": "/docs"}