| 123456789101112131415161718192021 |
- using Web.Api.Common;
- using Application.Abstractions.Messaging;
- namespace Web.Api.Endpoints.Store;
- /// <summary>상점 — 게임 필터 드롭다운용 활성 게임 목록.</summary>
- 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();
- }
- }
|