mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Add GreenField endpoint for fetching all apps (#4462)
Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user