Introduce `ApiEndpointOptions` class for API route configuration. Adjust various file imports to use `Elsa.Workflows.Management` and consolidate namespaces to enhance code maintainability and readability. Additionally, mark `HttpActivityOptions.ApiRoutePrefix` as obsolete in favor of `ApiEndpointOptions.RoutePrefix`.
9 lines
201 B
C#
9 lines
201 B
C#
namespace Elsa.Workflows.Api;
|
|
|
|
public class ApiEndpointOptions
|
|
{
|
|
/// <summary>
|
|
/// The prefix used for API routes.
|
|
/// </summary>
|
|
public string RoutePrefix { get; set; } = "elsa/api";
|
|
} |