Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions api/src/Feature.Locations/GetLocationsVersion/Endpoint.cs
Original file line number Diff line number Diff line change
@@ -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<Request, Results<Ok<Response>, NotFound>>
public class Endpoint(VoteMonitorContext context) : Endpoint<Request, Results<Ok<Response>, NotFound>>
{
public override void Configure()
{
Expand All @@ -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<Results<Ok<Response>, NotFound>> ExecuteAsync(Request req, CancellationToken ct)
Expand Down