diff --git a/api/ovdashboard_api/app.py b/api/ovdashboard_api/app.py index 56bb583..d83b7df 100644 --- a/api/ovdashboard_api/app.py +++ b/api/ovdashboard_api/app.py @@ -11,7 +11,7 @@ from fastapi.middleware.cors import CORSMiddleware from fastapi.staticfiles import StaticFiles from .dav_common import webdav_check -from .routers.v1 import router as v1_router +from .routers import v1_router from .settings import SETTINGS app = FastAPI( diff --git a/api/ovdashboard_api/routers/__init__.py b/api/ovdashboard_api/routers/__init__.py index e69de29..7a4e361 100644 --- a/api/ovdashboard_api/routers/__init__.py +++ b/api/ovdashboard_api/routers/__init__.py @@ -0,0 +1,5 @@ +from .v1 import router as v1_router + +__all__ = [ + "v1_router", +] diff --git a/api/ovdashboard_api/routers/v1/__init__.py b/api/ovdashboard_api/routers/v1/__init__.py index cc4fec3..b25bb2f 100644 --- a/api/ovdashboard_api/routers/v1/__init__.py +++ b/api/ovdashboard_api/routers/v1/__init__.py @@ -19,7 +19,3 @@ router.include_router(file.router) router.include_router(calendar.router) router.include_router(aggregate.router) - -__all__ = [ - "router", -]