From 00d17ee71f2bf8be786d13da78952d15685651a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Mon, 19 Sep 2022 09:35:18 +0000 Subject: [PATCH] router import path --- api/ovdashboard_api/app.py | 2 +- api/ovdashboard_api/routers/__init__.py | 5 +++++ api/ovdashboard_api/routers/v1/__init__.py | 4 ---- 3 files changed, 6 insertions(+), 5 deletions(-) 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", -]