using MediatR; using Teamified.Api.Teams.Queries.ListTeams; namespace Teamified.Api.Teams.Endpoints { public class ListTeams { public static async Task Handle(IMediator mediator) { var teams = await mediator.Send(new ListTeamsQuery()); return Results.Ok(teams); } } }