corrected env vars for being dynamic

This commit is contained in:
2026-01-20 21:07:10 +00:00
parent c020ea968c
commit be678c1cf0
5 changed files with 13 additions and 6 deletions

View File

@@ -16,11 +16,14 @@ import db_setup as db # Import the entire db_setup module
from user_mgmt import *
from media_mgmt import *
pathRoot = os.environ.get("ROOT_PATH","/")
app = FastAPI(
title="YT2MP3 API",
description="Simple API to download YouTube videos as MP3.",
version="1.0.0",
license_info="MIT",
root_path=pathRoot,
lifespan=db.lifespan
)