mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Greenfield: Manage notifications (#6058)
Prerequisite for btcpayserver/app#12.
This commit is contained in:
@@ -22,7 +22,6 @@ using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Options;
|
||||
using NBitcoin;
|
||||
using NBXplorer.DerivationStrategy;
|
||||
using NBXplorer.Models;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using InvoiceData = BTCPayServer.Client.Models.InvoiceData;
|
||||
@@ -644,6 +643,18 @@ namespace BTCPayServer.Controllers.Greenfield
|
||||
HandleActionResult(await GetController<GreenfieldApiKeysController>().RevokeAPIKey(apikey));
|
||||
}
|
||||
|
||||
public override async Task<NotificationSettingsData> GetNotificationSettings(CancellationToken token = default)
|
||||
{
|
||||
return GetFromActionResult<NotificationSettingsData>(
|
||||
await GetController<GreenfieldNotificationsController>().GetNotificationSettings());
|
||||
}
|
||||
|
||||
public override async Task<NotificationSettingsData> UpdateNotificationSettings(UpdateNotificationSettingsRequest request, CancellationToken token = default)
|
||||
{
|
||||
return GetFromActionResult<NotificationSettingsData>(
|
||||
await GetController<GreenfieldNotificationsController>().UpdateNotificationSettings(request));
|
||||
}
|
||||
|
||||
public override async Task<IEnumerable<NotificationData>> GetNotifications(bool? seen = null,
|
||||
int? skip = null, int? take = null, CancellationToken token = default)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user