using Web.Api.Common; using Application.Abstractions.Messaging; namespace Web.Api.Endpoints.Store; /// 상점 — 게임 필터 드롭다운용 활성 게임 목록. internal sealed class GamesList : IEndpoint { public void MapEndpoint(IEndpointRouteBuilder app) { app.MapGet("api/store/games", async ( ISender sender, CancellationToken ct ) => { var data = await sender.Send(new Application.Features.Api.Store.Games.List.Query(), ct); return ApiResponse.Ok(data); }) .WithTags("Store") .AllowAnonymous(); } }