From f9964a8157d328b92730e4f191158cface74aca6 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Sat, 12 Feb 2022 12:48:41 +0100 Subject: [PATCH] change action --- backend/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/config.py b/backend/config.py index 0033f60..4e31b09 100644 --- a/backend/config.py +++ b/backend/config.py @@ -48,12 +48,12 @@ class ProxyCreateLink(pydantic.BaseModel): class ProxyRequest(pydantic.BaseModel): - action: Literal["create-url", "read-config"] + action: Literal["create-urls", "read-config"] urls: Optional[list[ProxyCreateLink]] class ProxyResponse(pydantic.BaseModel): - action: Literal["create-url", "read-config"] + action: Literal["create-urls", "read-config"] urls: Optional[list[pydantic.HttpUrl]] @@ -86,7 +86,7 @@ class ProxyElem: response_data: ProxyResponse try: - request_data = ProxyRequest.parse_obj({"urls": link_requests, "action": "create-url"}) + request_data = ProxyRequest.parse_obj({"urls": link_requests, "action": "create-urls"}) except pydantic.ValidationError as e: logger.info(e) return clean_urls