Additions to api, removal of blazor project for now

This commit is contained in:
2021-10-13 15:07:23 -04:00
parent de1f4c9b71
commit 152f196ae1
36 changed files with 20 additions and 1316 deletions

View File

@@ -6,6 +6,7 @@ namespace WebAPI.Data
public static class AppSettings
{
public static string PterodactylAPIKey { get; private set; }
public static string PterodactylPanelURL { get; private set; }
public static void Init(IConfiguration configuration)
{
var fields = typeof(AppSettings).GetProperties();

View File

@@ -0,0 +1,18 @@
using System.Net.Http;
namespace WebAPI.Data
{
public class PterodactylService
{
private HttpClient _client { get; set; }
private string _apiToken { get; set; }
public PterodactylService()
{
_client = new HttpClient();
_apiToken = AppSettings.PterodactylAPIKey;
}
}
}