mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-26 18:55:44 +02:00
add feature to set base url path to metadata_relay
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user