Always return as version 1 as per spec

This commit is contained in:
Jeff Leung 2024-08-21 10:59:22 -07:00
parent a1b131db36
commit aaa28e9107
2 changed files with 1 additions and 2 deletions

View File

@ -43,7 +43,6 @@ app.MapGet("/api/v1/config", (HttpRequest request) =>
ConfigResponse config = new() ConfigResponse config = new()
{ {
Version = 1,
Urls = new Urls Urls = new Urls
{ {
SmallDownloadUrl = smallDownloadUrl.AbsoluteUri, SmallDownloadUrl = smallDownloadUrl.AbsoluteUri,

View File

@ -2,7 +2,7 @@
{ {
public class ConfigResponse public class ConfigResponse
{ {
public int Version { get; set; } public int Version => 1;
public required Urls Urls { get; set; } public required Urls Urls { get; set; }
} }