mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
fix client
This commit is contained in:
parent
deb197cfa5
commit
79f12a7058
2 changed files with 1 additions and 5 deletions
|
@ -9,7 +9,7 @@ namespace BTCPayServer.Client
|
|||
{
|
||||
public virtual async Task<IEnumerable<StoreData>> GetStores(CancellationToken token = default)
|
||||
{
|
||||
var response = await _httpClient.SendAsync(CreateHttpRequest("api/v1/api-keys/stores"), token);
|
||||
var response = await _httpClient.SendAsync(CreateHttpRequest("api/v1/stores"), token);
|
||||
return await HandleResponse<IEnumerable<StoreData>>(response);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,10 +11,6 @@ namespace BTCPayServer.Controllers.RestApi
|
|||
[Authorize(AuthenticationSchemes = AuthenticationSchemes.Greenfield)]
|
||||
public class StoresController : ControllerBase
|
||||
{
|
||||
public StoresController()
|
||||
{
|
||||
}
|
||||
|
||||
[Authorize(Policy = Policies.CanViewStoreSettings, AuthenticationSchemes = AuthenticationSchemes.Greenfield)]
|
||||
[HttpGet("~/api/v1/stores")]
|
||||
public ActionResult<IEnumerable<Client.Models.StoreData>> GetStores()
|
||||
|
|
Loading…
Add table
Reference in a new issue