mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-31 12:00:06 -07:00
!wip work in progress for the theme presets
This commit is contained in:
parent
fa774784c0
commit
c8f00c4e8a
11 changed files with 131 additions and 2 deletions
25
src/Ombi.Api.Github/GithubApi.cs
Normal file
25
src/Ombi.Api.Github/GithubApi.cs
Normal file
|
@ -0,0 +1,25 @@
|
|||
using System;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using Ombi.Api.Github.Models;
|
||||
|
||||
namespace Ombi.Api.Github
|
||||
{
|
||||
public class GithubApi : IGithubApi
|
||||
{
|
||||
public GithubApi(IApi api)
|
||||
{
|
||||
_api = api;
|
||||
}
|
||||
|
||||
private readonly IApi _api;
|
||||
private const string BaseUrl = "https://api.github.com/";
|
||||
|
||||
public async Task<CakeThemesContainer> GetCakeThemes()
|
||||
{
|
||||
var request = new Request("repos/leram84/layer.Cake/contents/Themes", BaseUrl, HttpMethod.Get);
|
||||
|
||||
return await _api.Request<CakeThemesContainer>(request);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue