using Application.Abstractions.Messaging; using Web.Api.Common; namespace Web.Api.Endpoints.Market; /// 세계 주요국 증시지수 — 국내(코스피) + 해외 스냅샷 병합. 메인 세계지도 핀 (익명 열람). internal sealed class WorldIndices : IEndpoint { public void MapEndpoint(IEndpointRouteBuilder app) { app.MapGet("api/market/world-indices", async ( ISender sender, CancellationToken ct ) => { var result = await sender.Send(new Application.Features.Api.Stocks.GetWorldIndices.Query(), ct); return ApiResponse.Ok(result); }) .WithTags("Market") .AllowAnonymous(); } }