mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-22 14:13:36 -07:00
Mark GetProfiles method as virtual
This commit is contained in:
parent
978946df94
commit
72cd95d8b0
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ namespace Ombi.Api.Sonarr
|
||||||
protected IApi Api { get; }
|
protected IApi Api { get; }
|
||||||
protected virtual string ApiBaseUrl => "/api/";
|
protected virtual string ApiBaseUrl => "/api/";
|
||||||
|
|
||||||
public async Task<IEnumerable<SonarrProfile>> GetProfiles(string apiKey, string baseUrl)
|
public virtual async Task<IEnumerable<SonarrProfile>> GetProfiles(string apiKey, string baseUrl)
|
||||||
{
|
{
|
||||||
var request = new Request($"{ApiBaseUrl}profile", baseUrl, HttpMethod.Get);
|
var request = new Request($"{ApiBaseUrl}profile", baseUrl, HttpMethod.Get);
|
||||||
request.AddHeader("X-Api-Key", apiKey);
|
request.AddHeader("X-Api-Key", apiKey);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue