* Support draft-only content in the Delivery API query * Allow outputting "entirely unpublished" content * Make the preview path explicit to avoid clashing endpoints * Handle trailing slash setting for preview URLs * Update src/Umbraco.Infrastructure/Examine/DeliveryApiContentIndexValueSetBuilder.cs Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com> * Remove superfluous (and incorrect) unpublished route handling * Make sure preview output includes routes for unpublished cultures * Ensure that published content with unpublished ancestors are available in preview * Fix route start item when previewing published content with unpublished parent --------- Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
22 lines
585 B
C#
22 lines
585 B
C#
namespace Umbraco.Cms.Core;
|
|
|
|
public static partial class Constants
|
|
{
|
|
/// <summary>
|
|
/// Defines constants for the Delivery API.
|
|
/// </summary>
|
|
public static class DeliveryApi
|
|
{
|
|
/// <summary>
|
|
/// Constants for Delivery API routing purposes.
|
|
/// </summary>
|
|
public static class Routing
|
|
{
|
|
/// <summary>
|
|
/// Path prefix for unpublished content requested in a preview context.
|
|
/// </summary>
|
|
public const string PreviewContentPathPrefix = "preview-";
|
|
}
|
|
}
|
|
}
|