66from src .schemas .errorResponse import ErrorResponse
77from src .schemas .proxyHosts import ProxyHost
88from src .services .app_manager import AppManger
9- from src .services .proxy_manager import ProxyManager
10- from src .core .logger import logger
119
1210router = APIRouter ()
1311
@@ -27,19 +25,6 @@ def get_proxys(
2725 ):
2826 return AppManger ().get_proxys_by_app (app_id ,endpointId )
2927
30- @router .get (
31- "/proxys/ssl/certificates" ,
32- summary = "Get SSL Certificates" ,
33- description = "Get all ssl certificates" ,
34- responses = {
35- 200 : {"model" : list [dict ]},
36- 400 : {"model" : ErrorResponse },
37- 500 : {"model" : ErrorResponse },
38- }
39- )
40- def get_certificates ():
41- return ProxyManager ().get_all_certificates ()
42-
4328@router .post (
4429 "/proxys/{app_id}" ,
4530 summary = "Create Proxy" ,
@@ -55,7 +40,6 @@ def create_proxys(
5540 app_id : str = Path (..., description = "App ID to create proxys from" ),
5641 endpointId : int = Query (None , description = "Endpoint ID to create proxys from. If not set, create proxys from the local endpoint" ),
5742):
58-
5943 return AppManger ().create_proxy_by_app (app_id ,domain_names .domain_names ,endpointId )
6044
6145@router .put (
@@ -110,6 +94,4 @@ def delete_proxys_by_id(
11094):
11195 client_host = request .headers .get ("Host" )
11296 # client_host = request.client.host
113- AppManger ().remove_proxy_by_id (proxy_id ,client_host )
114-
115-
97+ AppManger ().remove_proxy_by_id (proxy_id ,client_host )
0 commit comments