fix client

This commit is contained in:
Kukks 2020-03-26 12:34:09 +01:00
parent deb197cfa5
commit 79f12a7058
2 changed files with 1 additions and 5 deletions

View file

@ -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);
}
}

View file

@ -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()