FaviconMiddlewareExtensions.UseFavicon method
Adds middleware to serve a favicon for the application.
public static IApplicationBuilder UseFavicon(this IApplicationBuilder app, string? iconPath = null)
parameter | description |
---|---|
app | The application builder. |
iconPath | Optional path to a custom favicon file. If not provided, uses the embedded favicon. |
Return Value
The application builder.
See Also
- class FaviconMiddlewareExtensions
- namespace Kestrun.Middleware