Something went wrong. Try again.
Test web dev.
Something went wrong. Try again.
483 B · 15 lines
C#
at main
12345678910111213141516namespace 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"); }}