Add GreenField endpoint for fetching all apps (#4462)

Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>
This commit is contained in:
Umar Bolatov
2023-01-29 16:42:24 -08:00
committed by GitHub
parent b372dc21d6
commit c0c34fbb41
7 changed files with 206 additions and 4 deletions

View File

@@ -1196,6 +1196,18 @@ namespace BTCPayServer.Controllers.Greenfield
await GetController<GreenfieldAppsController>().GetApp(appId));
}
public override async Task<AppDataBase[]> GetAllApps(string storeId, CancellationToken token = default)
{
return GetFromActionResult<AppDataBase[]>(
await GetController<GreenfieldAppsController>().GetAllApps(storeId));
}
public override async Task<AppDataBase[]> GetAllApps(CancellationToken token = default)
{
return GetFromActionResult<AppDataBase[]>(
await GetController<GreenfieldAppsController>().GetAllApps());
}
public override async Task DeleteApp(string appId, CancellationToken token = default)
{
HandleActionResult(await GetController<GreenfieldAppsController>().DeleteApp(appId));