Merge pull request 'Refactored get compliance item endpoint' (#115) from finishline into main
Reviewed-on: #115
This commit was merged in pull request #115.
This commit is contained in:
@@ -14,7 +14,7 @@ public sealed class GetComplianceItemsEndpoint : IEndpoint
|
|||||||
{
|
{
|
||||||
public void Map(IEndpointRouteBuilder builder)
|
public void Map(IEndpointRouteBuilder builder)
|
||||||
{
|
{
|
||||||
builder.MapGet("api/projects/complianceitems/{projectId}", async (string projectId, IProjectService service,
|
builder.MapGet("api/projects/{projectId}/complianceitems", async (string projectId, IProjectService service,
|
||||||
CancellationToken cancellationToken = default) =>
|
CancellationToken cancellationToken = default) =>
|
||||||
await service.GetComplianceItemsAsync(projectId, cancellationToken) switch
|
await service.GetComplianceItemsAsync(projectId, cancellationToken) switch
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user