* Implement UmbracoRequestOptions and check in UmbracoRequestMiddleware.cs * Fix breaking change * Add suggestion from Marc * Amend names Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
15 lines
462 B
C#
15 lines
462 B
C#
using System;
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
namespace Umbraco.Cms.Web.Common.Routing
|
|
{
|
|
public class UmbracoRequestOptions
|
|
{
|
|
/// <summary>
|
|
/// Gets the delegate that checks if we're gonna handle a request as a client-side request
|
|
/// this returns true by default and can be overwritten in Startup.cs
|
|
/// </summary>
|
|
public Func<HttpRequest, bool> HandleAsServerSideRequest { get; set; } = x => false;
|
|
}
|
|
}
|