Remove sample 'weather' endpoint

This commit is contained in:
Jonathan Bourdon
2024-07-09 15:24:58 -04:00
parent 349999722b
commit 25ea9b50c7
4 changed files with 0 additions and 61 deletions

View File

@@ -1,18 +0,0 @@
using Hutopy.Application.WeatherForecasts.Queries.GetWeatherForecasts;
namespace Hutopy.Web.Endpoints;
public class WeatherForecasts : EndpointGroupBase
{
public override void Map(WebApplication app)
{
app.MapGroup(this)
.RequireAuthorization()
.MapGet(GetWeatherForecasts);
}
private static async Task<IEnumerable<WeatherForecast>> GetWeatherForecasts(ISender sender)
{
return await sender.Send(new GetWeatherForecastsQuery());
}
}