diff --git a/api/src/Feature.Locations/GetLocationsVersion/Endpoint.cs b/api/src/Feature.Locations/GetLocationsVersion/Endpoint.cs index d8c8f2562..53f462bee 100644 --- a/api/src/Feature.Locations/GetLocationsVersion/Endpoint.cs +++ b/api/src/Feature.Locations/GetLocationsVersion/Endpoint.cs @@ -1,9 +1,6 @@ -using Authorization.Policies.Requirements; -using Microsoft.AspNetCore.Authorization; +namespace Feature.Locations.GetLocationsVersion; -namespace Feature.Locations.GetLocationsVersion; - -public class Endpoint(IAuthorizationService authorizationService, VoteMonitorContext context) : Endpoint, NotFound>> +public class Endpoint(VoteMonitorContext context) : Endpoint, NotFound>> { public override void Configure() { @@ -15,6 +12,7 @@ public override void Configure() s.Summary = "Gets current version of locations for an election round"; s.Description = "Cache key changes every time any location changes"; }); + AllowAnonymous(); } public override async Task, NotFound>> ExecuteAsync(Request req, CancellationToken ct)