19 lines
445 B
Python
19 lines
445 B
Python
|
|
from fastapi import FastAPI
|
||
|
|
|
||
|
|
app = FastAPI(
|
||
|
|
title="Media Ingest",
|
||
|
|
description="Private broadcast media-ingest service.",
|
||
|
|
version="0.1.0",
|
||
|
|
)
|
||
|
|
|
||
|
|
|
||
|
|
@app.get("/", tags=["system"])
|
||
|
|
def root() -> dict[str, str]:
|
||
|
|
return {"name": "Media Ingest", "status": "running"}
|
||
|
|
|
||
|
|
|
||
|
|
@app.get("/health", tags=["system"])
|
||
|
|
def health() -> dict[str, str]:
|
||
|
|
"""Report whether the application process can serve requests."""
|
||
|
|
return {"status": "healthy"}
|