Это мой код EndPoint
Код: Выделить всё
public override void Configure()
{
Post("/api/claim/create");
//TODO: after Auth0 integration will add auth
AllowAnonymous();
}
public override async Task HandleAsync(ClaimRequest req, CancellationToken ct)
{
await new CreateClaim()
{
ClaimName = req.ClaimName
}.ExecuteAsync();
}
Я перешел по этой ссылке
https://fast-endpoints.com/docs/command ... a-command- обработчик
Подробнее здесь: https://stackoverflow.com/questions/759 ... tendpoints
Мобильная версия