Files
KArtSell.Aegis/templates/dotnet/VerticalSlice/Endpoint.cs.template
T
kjh2064 dcd1322d41
ci / backend (push) Failing after 12s
ci / frontend (push) Failing after 19s
ci / static (push) Failing after 45s
Initial commit: Add project files
2026-08-02 05:15:36 +09:00

20 lines
528 B
Plaintext

using FastEndpoints;
namespace __MODULE__.Features.__SLICE__;
public sealed class Endpoint(Handler handler) : Endpoint<Request, Response>
{
public override void Configure()
{
__HTTP_METHOD__("/__ROUTE__");
Roles("__ROLE__");
Description(x => x.WithTags("__MODULE__"));
}
public override async Task HandleAsync(Request req, CancellationToken ct)
{
var result = await handler.HandleAsync(req, HttpContext.TraceIdentifier, ct);
await Send.OkAsync(result, ct);
}
}