From 3205382706e372afa5c08521689785666b72d47c Mon Sep 17 00:00:00 2001 From: Iam54r1n4 Date: Sun, 26 Jan 2025 11:15:54 +0000 Subject: [PATCH] Add api/v1/config/... endpoint --- core/scripts/webpanel/routers/api/v1/__init__.py | 2 ++ core/scripts/webpanel/routers/api/v1/config/__init__.py | 9 +++++++++ core/scripts/webpanel/routers/api/v1/config/config.py | 0 3 files changed, 11 insertions(+) create mode 100644 core/scripts/webpanel/routers/api/v1/config/__init__.py create mode 100644 core/scripts/webpanel/routers/api/v1/config/config.py diff --git a/core/scripts/webpanel/routers/api/v1/__init__.py b/core/scripts/webpanel/routers/api/v1/__init__.py index e92088b..ed12a2a 100644 --- a/core/scripts/webpanel/routers/api/v1/__init__.py +++ b/core/scripts/webpanel/routers/api/v1/__init__.py @@ -1,8 +1,10 @@ from fastapi import APIRouter from . import user from . import server +from . import config api_v1_router = APIRouter() api_v1_router.include_router(user.router, prefix='/users') api_v1_router.include_router(server.router, prefix='/server') +api_v1_router.include_router(config.router, prefix='/config') diff --git a/core/scripts/webpanel/routers/api/v1/config/__init__.py b/core/scripts/webpanel/routers/api/v1/config/__init__.py new file mode 100644 index 0000000..caa99b0 --- /dev/null +++ b/core/scripts/webpanel/routers/api/v1/config/__init__.py @@ -0,0 +1,9 @@ +from fastapi import APIRouter +from . import hysteria +from . import warp + +router = APIRouter() + + +router.include_router(hysteria.router, prefix='/hysteria') +router.include_router(warp.router, prefix='/warp') diff --git a/core/scripts/webpanel/routers/api/v1/config/config.py b/core/scripts/webpanel/routers/api/v1/config/config.py new file mode 100644 index 0000000..e69de29