diff --git a/src/bundles/Elsa.WorkflowServer.Web/Endpoints/SlowEndpoint.cs b/src/bundles/Elsa.WorkflowServer.Web/Endpoints/SlowEndpoint.cs new file mode 100644 index 000000000..b8b9ec1c8 --- /dev/null +++ b/src/bundles/Elsa.WorkflowServer.Web/Endpoints/SlowEndpoint.cs @@ -0,0 +1,18 @@ +using FastEndpoints; + +namespace Elsa.WorkflowServer.Web.Endpoints; + +public class SlowEndpoint : EndpointWithoutRequest +{ + public override void Configure() + { + Get("/slow"); + AllowAnonymous(); + } + + public override async Task HandleAsync(CancellationToken ct) + { + await Task.Delay(TimeSpan.FromSeconds(10), ct); + await SendOkAsync(ct); + } +} \ No newline at end of file