Add support for updating POS app through Greenfield API

Part of #3458
This commit is contained in:
Umar Bolatov
2022-07-17 22:23:22 -07:00
committed by Andrew Camilleri
parent 701ba59bd8
commit 16f4ca5fbf
5 changed files with 370 additions and 148 deletions

View File

@@ -1103,6 +1103,14 @@ namespace BTCPayServer.Controllers.Greenfield
await GetController<GreenfieldAppsController>().CreatePointOfSaleApp(storeId, request));
}
public override async Task<PointOfSaleAppData> PutPointOfSaleApp(
string appId,
CreatePointOfSaleAppRequest request, CancellationToken token = default)
{
return GetFromActionResult<PointOfSaleAppData>(
await GetController<GreenfieldAppsController>().PutPointOfSaleApp(appId, request));
}
public override async Task<AppDataBase> GetApp(string appId, CancellationToken token = default)
{
return GetFromActionResult<AppDataBase>(