Refactor and expose more information

This commit is contained in:
2025-07-14 20:36:59 +02:00
parent 2778c9d348
commit 8cb1617597
20 changed files with 409 additions and 162 deletions

View File

@@ -0,0 +1,22 @@
namespace HomeApi.Models.Configuration;
public class ApiConfiguration
{
public Keys Keys { get; set; } = new();
public BaseUrls BaseUrls { get; set; } = new();
public string DefaultCity { get; set; } = "Vega stockholms lan";
}
public class BaseUrls
{
public string Weather { get; set; } = string.Empty;
public string Nominatim { get; set; } = string.Empty;
public string Aurora { get; set; } = string.Empty;
}
public class Keys
{
public string Weather { get; set; } = string.Empty;
public string Nominatim { get; set; } = string.Empty;
public string Aurora { get; set; } = string.Empty;
}