Files
MediaManager/metadata_relay/main.py
Maximilian Dorninger a39e0d204a Ruff enable type annotations rule (#362)
This PR enables the ruff rule for return type annotations (ANN), and
adds the ty package for type checking.
2026-01-06 17:07:19 +01:00

20 lines
475 B
Python

import os
from app.tmdb import router as tmdb_router
from app.tvdb import router as tvdb_router
from fastapi import FastAPI
from starlette_exporter import PrometheusMiddleware, handle_metrics
app = FastAPI(root_path=os.getenv("BASE_PATH", ""))
app.add_middleware(PrometheusMiddleware)
app.add_route("/metrics", handle_metrics)
app.include_router(tmdb_router)
app.include_router(tvdb_router)
@app.get("/")
async def root() -> dict:
return {"message": "Hello World"}