diff --git a/api/ovdashboard_api/main.py b/api/ovdashboard_api/main.py index 14bbf17..bdb201b 100644 --- a/api/ovdashboard_api/main.py +++ b/api/ovdashboard_api/main.py @@ -66,9 +66,9 @@ def main() -> None: if webdav_check(): uvicorn_run( app="ovdashboard_api.main:app", - host=SETTINGS.main_host, - port=SETTINGS.main_port, - reload=not SETTINGS.production_mode, + host="0.0.0.0", + port=8000, + reload=True, ) diff --git a/api/ovdashboard_api/routers/__init__.py b/api/ovdashboard_api/routers/__init__.py index a45a49e..95471ba 100644 --- a/api/ovdashboard_api/routers/__init__.py +++ b/api/ovdashboard_api/routers/__init__.py @@ -6,10 +6,9 @@ This file: Main API router definition. from fastapi import APIRouter -from ..settings import SETTINGS from . import aggregate, calendar, image, misc, text, ticker -main_router = APIRouter(prefix=f"/{SETTINGS.api_prefix}") +main_router = APIRouter(prefix="/api/v1") main_router.include_router(misc.router) diff --git a/api/ovdashboard_api/settings.py b/api/ovdashboard_api/settings.py index 497baf9..43fec69 100644 --- a/api/ovdashboard_api/settings.py +++ b/api/ovdashboard_api/settings.py @@ -46,9 +46,6 @@ class Settings(BaseSettings): ping_host: str = "10.0.0.0" ping_port: int = 1 - main_host: str = "0.0.0.0" - main_port: int = 8000 - api_prefix: str = "api/v1" openapi_url: str = "/openapi.json" docs_url: Optional[str] = None if production_mode else "/docs" redoc_url: Optional[str] = None if production_mode else "/redoc"