CleanUp and added migration

This commit is contained in:
Dominic Villemure
2024-03-17 16:59:20 -04:00
parent 0f7cdb3abd
commit d565d0c98b
9 changed files with 96 additions and 13 deletions

View File

@@ -0,0 +1,18 @@
using Hutopy.Application.FuturCreators.Commands.CreateFuturCreator;
namespace Hutopy.Web.Endpoints;
public class FuturCreators : EndpointGroupBase
{
public override void Map(WebApplication app)
{
app.MapGroup(this)
.RequireAuthorization()
.MapPost(CreateFuturCreator);
}
public Task<int> CreateFuturCreator(ISender sender, CreateFuturCreatorCommand command)
{
return sender.Send(command);
}
}