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
7 changes: 3 additions & 4 deletions src/Endpoints/TesterEndpoints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public static void MapTesterEndpoints(this WebApplication app)
{
var testerGroup = app
.MapGroup("/api/testers")
.WithTags("Tester")
.WithOpenApi();
.WithTags("Testers");

testerGroup.MapPost("/", async (
[FromBody]CreateTesterRequest request,
Expand Down Expand Up @@ -52,7 +51,7 @@ public static void MapTesterEndpoints(this WebApplication app)
return response.ToHttpResult();
})
.Produces<Result>()
.WithMetadata(new AllowAnonymousAttribute());
.AllowAnonymous();

testerGroup.MapGet("/", async (
[AsParameters]GetTestersRequest request,
Expand All @@ -71,7 +70,7 @@ public static void MapTesterEndpoints(this WebApplication app)
return response.ToHttpResult();
})
.Produces<Result<ValidateTesterAccessResponse>>()
.WithMetadata(new AllowAnonymousAttribute());
.AllowAnonymous();

testerGroup.MapGet("/access-history", async (
[AsParameters]GetAllTestersAccessHistoryRequest request,
Expand Down
Loading