elsa-core/src/modules/Elsa.Workflows.Api/Options/ApiEndpointOptions.cs

16 lines
507 B
C#
Raw Normal View History

namespace Elsa.Workflows.Api;
public class ApiEndpointOptions
{
/// <summary>
/// The prefix used for API routes.
/// </summary>
public string RoutePrefix { get; set; } = "elsa/api";
/// <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; }
}