2024-07-07 14:09:50 +00:00
|
|
|
namespace Elsa.Workflows.Api;
|
|
|
|
|
|
|
|
|
|
public class ApiEndpointOptions
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The prefix used for API routes.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string RoutePrefix { get; set; } = "elsa/api";
|
2026-05-21 22:13:11 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The ASP.NET Core rate limiting policy to apply to Elsa API endpoints.
|
|
|
|
|
/// <c>null</c> means unspecified and allows a host to assign a default policy; an empty string disables Elsa API rate limiting.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? RateLimitingPolicyName { get; set; }
|
|
|
|
|
}
|