Initial commit: Add project files
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
using FastEndpoints;
|
||||
namespace KArtSell.Modules.__MODULE__.Features.__FEATURE__;
|
||||
public sealed class Endpoint(IHandler handler) : Endpoint<Request, Response>
|
||||
{
|
||||
public override void Configure() { Post("/api/v1/__MODULE__/__FEATURE__"); Policies("__SLICE_ID__"); }
|
||||
public override async Task HandleAsync(Request request, CancellationToken ct)
|
||||
=> await SendOkAsync(await handler.HandleAsync(request, ct), ct);
|
||||
}
|
||||
Reference in New Issue
Block a user