From 181fe5ec0d0c67075e867465417396b25a643ac9 Mon Sep 17 00:00:00 2001 From: Iam54r1n4 Date: Sun, 9 Feb 2025 10:48:16 +0000 Subject: [PATCH] Chg: API function names --- core/scripts/webpanel/routers/api/v1/config/hysteria.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/scripts/webpanel/routers/api/v1/config/hysteria.py b/core/scripts/webpanel/routers/api/v1/config/hysteria.py index 7eecc0b..ff9531d 100644 --- a/core/scripts/webpanel/routers/api/v1/config/hysteria.py +++ b/core/scripts/webpanel/routers/api/v1/config/hysteria.py @@ -66,7 +66,7 @@ async def update(): @router.get('/get-port', response_model=GetPortResponse, summary='Get Hysteria2 port') -async def get_port(): +async def get_port_api(): """ Retrieves the port for Hysteria2. @@ -86,7 +86,7 @@ async def get_port(): @router.get('/set-port/{port}', response_model=DetailResponse, summary='Set Hysteria2 port') -async def set_port(port: int): +async def set_port_api(port: int): """ Sets the port for Hysteria2. @@ -107,7 +107,7 @@ async def set_port(port: int): @router.get('/get-sni', response_model=GetSniResponse, summary='Get Hysteria2 SNI') -async def get_sni(): +async def get_sni_api(): ''' Retrieves the SNI for Hysteria2. @@ -127,7 +127,7 @@ async def get_sni(): @router.get('/set-sni/{sni}', response_model=DetailResponse, summary='Set Hysteria2 SNI') -async def set_sni(sni: str): +async def set_sni_api(sni: str): """ Sets the SNI for Hysteria2.