From e3d52d33c9d6817d3ad3df78b732ac9be8bb53c1 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Mon, 29 Dec 2025 22:26:15 +0800 Subject: HUH?????????????? --- backend/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backend') diff --git a/backend/main.py b/backend/main.py index 37a8003..48f6ad3 100644 --- a/backend/main.py +++ b/backend/main.py @@ -454,8 +454,9 @@ def uri_to_information(data: InformationRequestData, response: fastapi.Response, # --- subscribe -@app.post("/notif_subscribe") +@app.post("/notif_subscribe", response_class=PlainTextResponse) def notif_subscribe(data: notif.PushSubscriptionData, response: fastapi.Response): endpoint = notif.subscribe(data) response.set_cookie(key="sub_endpoint", value=endpoint, secure=True, max_age=COOKIE_MAX_AGE)#, domain="backend.laundryweb.altafcreator.com", samesite="none", secure=True) response.status_code = fastapi.status.HTTP_200_OK + return "do i need to return something perhaps" -- cgit v1.2.3