Feature: Join us api call
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
17
src/Web/Endpoints/JoinUs.cs
Normal file
17
src/Web/Endpoints/JoinUs.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Hutopy.Application.FutureCreators.Commands;
|
||||
|
||||
namespace Hutopy.Web.Endpoints;
|
||||
|
||||
public class JoinUs : EndpointGroupBase
|
||||
{
|
||||
public override void Map(WebApplication app)
|
||||
{
|
||||
app.MapGroup(this)
|
||||
.MapPost(CreateFutureCreator);
|
||||
}
|
||||
|
||||
public Task<int> CreateFutureCreator(ISender sender, CreateFutureCreatorCommand command)
|
||||
{
|
||||
return sender.Send(command);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user