Refactored endpoints

This commit is contained in:
2026-09-27 13:06:50 +02:00
parent 1df0b97daf
commit dd6996bdb1
4 changed files with 4 additions and 4 deletions
@@ -14,7 +14,7 @@ public sealed class GetChangeRequestsEndpoint : IEndpoint
{
public void Map(IEndpointRouteBuilder builder)
{
builder.MapGet("api/projects/changerequests/{projectId}", async (string projectId, IProjectService service,
builder.MapGet("api/projects/{projectId}/changerequests", async (string projectId, IProjectService service,
CancellationToken cancellationToken = default) =>
await service.GetChangeRequestsAsync(projectId, cancellationToken) switch
{