feat: add automatic downloads for approved season requests

This commit is contained in:
maxDorninger
2025-05-31 13:45:44 +02:00
parent c89a5a19e8
commit 40c90d90ed
7 changed files with 111 additions and 13 deletions

View File

@@ -1,4 +1,5 @@
import logging
import os
import sys
from logging.config import dictConfig
@@ -64,7 +65,9 @@ if basic_config.DEVELOPMENT:
else:
log.info("Development Mode not activated!")
app = FastAPI(root_path="/api/v1")
base_path = os.getenv("API_BASE_PATH") or "/api/v1"
log.info("Base Path for API: %s", base_path)
app = FastAPI(root_path=base_path)
if basic_config.DEVELOPMENT:
origins = [
@@ -162,5 +165,7 @@ app.mount(
name="static-images",
)
log.info("Hello World!")
if __name__ == "__main__":
uvicorn.run(app, host="127.0.0.1", port=5049, log_config=LOGGING_CONFIG)