!wip integrated with the layer#cake repo. Just need to do the UI

This commit is contained in:
tidusjar 2017-11-06 22:21:43 +00:00
parent c8f00c4e8a
commit b1d59452ef
10 changed files with 38 additions and 24 deletions

View file

@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
using Ombi.Api.Github.Models;
@ -15,11 +16,12 @@ namespace Ombi.Api.Github
private readonly IApi _api;
private const string BaseUrl = "https://api.github.com/";
public async Task<CakeThemesContainer> GetCakeThemes()
public async Task<List<CakeThemes>> GetCakeThemes()
{
var request = new Request("repos/leram84/layer.Cake/contents/Themes", BaseUrl, HttpMethod.Get);
return await _api.Request<CakeThemesContainer>(request);
var request = new Request("repos/leram84/layer.Cake/contents/ombi/themes", BaseUrl, HttpMethod.Get);
request.AddHeader("Accept", "application/vnd.github.v3+json");
request.AddHeader("User-Agent", "Ombi");
return await _api.Request<List<CakeThemes>>(request);
}
}
}