# TextControlSettings.APIRoute Property

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

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.Web.MVC`
- **Package:** `TXTextControl.Web` (assembly `TXTextControl.Web.DocumentEditor.dll`, from nuget.org, the private NuGet feed or Text Control Offline Packages)
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web.MVC > TextControlSettings.APIRoute Property
- **423 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/apiroute-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/apiroute-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/apiroute-property/llms-full.txt

---

### Description

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

### Syntax

```csharp
public string APIRoute { get; set; }
```

```vbnet
Public Property APIRoute As String
```

### Examples

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

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

```vbnet
textControlSettings.APIRoute = "Quarterly report"
If Not String.IsNullOrWhiteSpace(textControlSettings.APIRoute) Then
    Console.WriteLine($"APIRoute: {textControlSettings.APIRoute}")
End If
```

---

## Nearby

- **Previous:** [TextControlSettings Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/llms-full.txt)
- **Next:** [TextControlSettings.BackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/backcolor-property/llms-full.txt)
