initial commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
"""Baby Monitor Main Application"""
|
||||
|
||||
from fastapi import FastAPI
|
||||
from fastapi.responses import PlainTextResponse
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
@app.get("/")
|
||||
def read_root() -> dict:
|
||||
"""Root endpoint returning a welcome message."""
|
||||
return {"message": "Hello World"}
|
||||
|
||||
|
||||
@app.get("/health", response_class=PlainTextResponse)
|
||||
def health_check() -> str:
|
||||
"""Health check endpoint."""
|
||||
return "OK"
|
||||
Reference in New Issue
Block a user