From 0b863b8c206023067dd264b1217b9dfd51987f76 Mon Sep 17 00:00:00 2001 From: dweinholz Date: Tue, 23 Jul 2024 15:50:01 +0200 Subject: [PATCH] updated default --- FastapiOpenRestyConfigurator/app/main/service/backend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FastapiOpenRestyConfigurator/app/main/service/backend.py b/FastapiOpenRestyConfigurator/app/main/service/backend.py index 4c4efbc..51e425f 100644 --- a/FastapiOpenRestyConfigurator/app/main/service/backend.py +++ b/FastapiOpenRestyConfigurator/app/main/service/backend.py @@ -52,7 +52,7 @@ async def get_backends() -> List[BackendOut]: return valid_backends -async def get_backends_upstream_urls() -> Dict[str, List[str]]: +async def get_backends_upstream_urls() -> Dict[str, List[BackendOut]]: valid_backends: List[BackendOut] = await get_backends() upstream_urls = {} @@ -61,7 +61,7 @@ async def get_backends_upstream_urls() -> Dict[str, List[str]]: if upstream_url: if upstream_url not in upstream_urls: upstream_urls[upstream_url] = [] - upstream_urls[upstream_url].append(backend.id) + upstream_urls[upstream_url].append(backend) return upstream_urls