fix(api): return bookingURL only from sync endpoint

This commit is contained in:
Ruidy 2026-02-18 18:39:43 +01:00
parent df1cd66cf1
commit e138d493ab
No known key found for this signature in database
GPG key ID: 705C24D202990805

View file

@ -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))
}
}