KestrunHostMapExtensions.AddHtmlTemplateRoute method (1 of 2)
Adds an HTML template route to the KestrunHost using the specified MapRouteOptions and HTML file path.
public static IEndpointConventionBuilder AddHtmlTemplateRoute(this KestrunHost host,
MapRouteOptions options, string htmlFilePath)
parameter | description |
---|---|
host | The KestrunHost instance. |
options | The MapRouteOptions containing route configuration. |
htmlFilePath | The path to the HTML template file. |
Return Value
An IEndpointConventionBuilder for further configuration.
See Also
- class KestrunHost
- record MapRouteOptions
- class KestrunHostMapExtensions
- namespace Kestrun.Hosting
KestrunHostMapExtensions.AddHtmlTemplateRoute method (2 of 2)
Adds an HTML template route to the KestrunHost for the specified pattern and HTML file path.
public static IEndpointConventionBuilder AddHtmlTemplateRoute(this KestrunHost host,
string pattern, string htmlFilePath, string[]? requireSchemes = null)
parameter | description |
---|---|
host | The KestrunHost instance. |
pattern | The route pattern. |
htmlFilePath | The path to the HTML template file. |
requireSchemes | Optional array of authorization schemes required for the route. |
Return Value
An IEndpointConventionBuilder for further configuration.
See Also
- class KestrunHost
- class KestrunHostMapExtensions
- namespace Kestrun.Hosting