namespace TestWeb.Core.WeatherForecasts; public static class WeatherForecastsModule { public const string Prefix = "/api/weatherforecasts"; public static void MapEndpoints(IEndpointRouteBuilder endpoints) { var group = endpoints.MapGroup("/api/weatherforecasts") .WithTags("WeatherForecasts") .AllowAnonymous(); group.MapGet("/", GetWeatherForecastsEndpoint.Handle) .WithSummary("Get weather forecast list"); } }