From e138d493ab62d2795daf6f72b6e5a7b724fcb03c Mon Sep 17 00:00:00 2001 From: Ruidy Date: Wed, 18 Feb 2026 18:39:43 +0100 Subject: [PATCH] fix(api): return bookingURL only from sync endpoint --- internal/server/handle_api_sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/handle_api_sync.go b/internal/server/handle_api_sync.go index 344ce3f..8aa89b1 100644 --- a/internal/server/handle_api_sync.go +++ b/internal/server/handle_api_sync.go @@ -50,7 +50,7 @@ func handleSync(bs *booking.Service) http.HandlerFunc { w.Header().Set("Content-Type", "application/json") w.WriteHeader(http.StatusCreated) - if err := json.NewEncoder(w).Encode(fmt.Sprintf("👍 %s", bookingURL)); err != nil { + if err := json.NewEncoder(w).Encode(map[string]string{"bookingURL": bookingURL}); err != nil { slog.Error("failed to write response", slog.Any("error", err)) } }