TX Text Control .NET Server

APIRoute Property

Property|Introduced in 23.0
Namespace
TXTextControl.Web.MVC
Package
TXTextControl.Web as TXTextControl.Web.DocumentEditor.dll from nuget.org, the private NuGet feed or Text Control Offline Packages

Description

Determines the API directory in the MVC project in which to find the WebSocket and print handlers. The default value is "api/".

Syntax

public string APIRoute { get; set; }

Examples

In the current ASP.NET Core integration, APIRoute is configured through TextControlSettings. The following example sets it while creating the editor configuration.

textControlSettings.APIRoute = "Quarterly report";
if (!string.IsNullOrWhiteSpace(textControlSettings.APIRoute))
{
    Console.WriteLine($"APIRoute: {textControlSettings.APIRoute}");
}