corrected env vars for being dynamic
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user