blob: 26e9d0fc4f3e5d098bbe0c40015c7880062b7dbd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
using System.Text.Json.Serialization;
namespace Spacebar.ConfigModel;
public class Config {
[JsonPropertyName("admin")]
public EndpointConfig Admin { get; set; } = null!;
[JsonPropertyName("api")]
public EndpointConfig Api { get; set; } = null!;
[JsonPropertyName("gateway")]
public EndpointConfig Gateway { get; set; } = null!;
[JsonPropertyName("cdn")]
public EndpointConfig Cdn { get; set; } = null!;
}
public class EndpointConfig {
[JsonPropertyName("endpointPrivate")]
public string? EndpointPrivate { get; set; }
[JsonPropertyName("endpointPublic")]
public string? EndpointPublic { get; set; }
}
public class ApiConfig : EndpointConfig {
[JsonPropertyName("activeVersions")]
public List<string> ActiveVersions { get; set; } = null!;
[JsonPropertyName("defaultVersion")]
public string DefaultVersion { get; set; } = null!;
}
|