add feature to set base url path to metadata_relay

This commit is contained in:
maxDorninger
2025-06-28 17:25:40 +02:00
parent 01d31eb7b5
commit c7c982e1ed
5 changed files with 372 additions and 4 deletions

View File

@@ -1,9 +1,11 @@
import os
from fastapi import FastAPI
from starlette_exporter import PrometheusMiddleware, handle_metrics
from app.tmdb import router as tmdb_router
from app.tvdb import router as tvdb_router
app = FastAPI()
app = FastAPI(root_path=os.getenv("BASE_PATH"))
app.add_middleware(PrometheusMiddleware)
app.add_route("/metrics", handle_metrics)