From f067fd06b6a56f410e815c7345eb3210b0a4c790 Mon Sep 17 00:00:00 2001 From: Iam54r1n4 Date: Sat, 25 Jan 2025 13:39:02 +0000 Subject: [PATCH] Init API version one --- core/scripts/webpanel/routers/__init__.py | 4 +--- core/scripts/webpanel/routers/api/__init__.py | 1 + core/scripts/webpanel/routers/api/v1/__init__.py | 7 +++++++ 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 core/scripts/webpanel/routers/api/__init__.py create mode 100644 core/scripts/webpanel/routers/api/v1/__init__.py diff --git a/core/scripts/webpanel/routers/__init__.py b/core/scripts/webpanel/routers/__init__.py index e1d5440..4dc7607 100644 --- a/core/scripts/webpanel/routers/__init__.py +++ b/core/scripts/webpanel/routers/__init__.py @@ -1,3 +1 @@ -from . import user -from . import hysteria -from . import warp +from . import api diff --git a/core/scripts/webpanel/routers/api/__init__.py b/core/scripts/webpanel/routers/api/__init__.py new file mode 100644 index 0000000..bbf8c7e --- /dev/null +++ b/core/scripts/webpanel/routers/api/__init__.py @@ -0,0 +1 @@ +from . import v1 \ No newline at end of file diff --git a/core/scripts/webpanel/routers/api/v1/__init__.py b/core/scripts/webpanel/routers/api/v1/__init__.py new file mode 100644 index 0000000..ddc5cc2 --- /dev/null +++ b/core/scripts/webpanel/routers/api/v1/__init__.py @@ -0,0 +1,7 @@ +from fastapi import APIRouter + +router = APIRouter() + + +# Import files so they are registered +from . import user # noqa