18 lines
414 B
C#
18 lines
414 B
C#
using Hutopy.Application.Stripe.Commands;
|
|
|
|
namespace Hutopy.Web.Endpoints;
|
|
|
|
public class Stripe : EndpointGroupBase
|
|
{
|
|
public override void Map(WebApplication app)
|
|
{
|
|
app.MapGroup(this)
|
|
.MapPost(CreateSessionCheckout);
|
|
}
|
|
|
|
private static Task<string> CreateSessionCheckout(ISender sender, CreateSessionCheckoutCommand command)
|
|
{
|
|
return sender.Send(command);
|
|
}
|
|
}
|