From a63a519be718f1529d97401474e472ab7810d9c3 Mon Sep 17 00:00:00 2001 From: Marc Schmidt Date: Sat, 22 Jun 2024 22:36:56 +0200 Subject: [PATCH] fix: unsubscribe notifications does not delete subscription Refs: #89 --- .../Notifications/UnsubscribeFromNotificationsEndpoint.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/host/Endpoints/Notifications/UnsubscribeFromNotificationsEndpoint.cs b/src/server/host/Endpoints/Notifications/UnsubscribeFromNotificationsEndpoint.cs index 7e7d3d2..3bc14c2 100644 --- a/src/server/host/Endpoints/Notifications/UnsubscribeFromNotificationsEndpoint.cs +++ b/src/server/host/Endpoints/Notifications/UnsubscribeFromNotificationsEndpoint.cs @@ -25,6 +25,9 @@ public override void Configure() { Delete(""); Group(); + Description(x => + x.ClearDefaultAccepts().Accepts("application/json") + ); } public override async Task HandleAsync(