using Application.Abstractions.Messaging; using Web.Api.Common; namespace Web.Api.Endpoints.Forum.StockBoard; /// 종목 트렌딩 랭킹 — GET /api/stock-boards/trending?count= (익명, Redis 10분 캐시). internal sealed class Trending : IEndpoint { public void MapEndpoint(IEndpointRouteBuilder app) { app.MapGet("api/stock-boards/trending", async ( ISender sender, int count = 20, CancellationToken ct = default ) => { var result = await sender.Send(new Application.Features.Api.Forum.StockBoard.Trending.Query(count), ct); return ApiResponse.Ok(result); }) .WithTags("StockBoard") .AllowAnonymous(); } }