From ddeea0bb4bf9d7e6ab62ce515934916ba209c5a3 Mon Sep 17 00:00:00 2001 From: Timothy Baldridge Date: Wed, 3 Jun 2020 15:04:18 -0600 Subject: [PATCH] Allow anonymous access to authored files list --- Wabbajack.Server/Controllers/AuthoredFiles.cs | 1 + Wabbajack.Server/Controllers/ListsStatus.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Wabbajack.Server/Controllers/AuthoredFiles.cs b/Wabbajack.Server/Controllers/AuthoredFiles.cs index 96057833..32d8fecc 100644 --- a/Wabbajack.Server/Controllers/AuthoredFiles.cs +++ b/Wabbajack.Server/Controllers/AuthoredFiles.cs @@ -154,6 +154,7 @@ namespace Wabbajack.BuildServer.Controllers [HttpGet] + [AllowAnonymous] [Route("")] public async Task UploadedFilesGet() { diff --git a/Wabbajack.Server/Controllers/ListsStatus.cs b/Wabbajack.Server/Controllers/ListsStatus.cs index 0a512224..9b7ad4b4 100644 --- a/Wabbajack.Server/Controllers/ListsStatus.cs +++ b/Wabbajack.Server/Controllers/ListsStatus.cs @@ -7,6 +7,7 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Nettle; using Wabbajack.Common; +using Wabbajack.Common.Serialization.Json; using Wabbajack.Lib.ModListRegistry; using Wabbajack.Server.DataLayer; using Wabbajack.Server.DTOs; @@ -124,6 +125,7 @@ namespace Wabbajack.BuildServer.Controllers .FirstOrDefault(d => d.MachineName == Name); } + [JsonName("Badge")] public class Badge { public int schemaVersion { get; set; } = 1;