mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Add crowdfund app create endpoint (#4068)
* Add crowdfund app create endpoint * replace DateTimeJsonConverter with NBitcoin.JsonConverters.DateTimeToUnixTimeConverter * Use DateTimeOffset instead of DateTime * Use array instead of CSV * update "startDate" and "endDate" docs definition * update docs
This commit is contained in:
@@ -1163,6 +1163,14 @@ namespace BTCPayServer.Controllers.Greenfield
|
||||
await GetController<GreenfieldAppsController>().UpdatePointOfSaleApp(appId, request));
|
||||
}
|
||||
|
||||
public override async Task<CrowdfundAppData> CreateCrowdfundApp(
|
||||
string storeId,
|
||||
CreateCrowdfundAppRequest request, CancellationToken token = default)
|
||||
{
|
||||
return GetFromActionResult<CrowdfundAppData>(
|
||||
await GetController<GreenfieldAppsController>().CreateCrowdfundApp(storeId, request));
|
||||
}
|
||||
|
||||
public override async Task<AppDataBase> GetApp(string appId, CancellationToken token = default)
|
||||
{
|
||||
return GetFromActionResult<AppDataBase>(
|
||||
|
||||
Reference in New Issue
Block a user