using Application.Abstractions.Messaging; using Web.Api.Common; namespace Web.Api.Endpoints.Market; /// 국내 증시 요약(메인) — 코스피·코스닥·KOSPI200 지수 + 등락종목수. 익명 열람. internal sealed class DomesticSummary : IEndpoint { public void MapEndpoint(IEndpointRouteBuilder app) { app.MapGet("api/market/domestic-summary", async ( ISender sender, CancellationToken ct ) => { var result = await sender.Send(new Application.Features.Api.Stocks.GetDomesticSummary.Query(), ct); return ApiResponse.Ok(result); }) .WithTags("Market") .AllowAnonymous(); } }