AssetRoutingOptions record

Namespace Runic.Assets · Runic.Assets 0.7.0-preview.5

public sealed record AssetRoutingOptions : IEquatable<AssetRoutingOptions>

Inherits or implements IEquatable.

Selects how a host adapter maps request paths to manifest assets. The Runic Assets host adapters share these rules and defaults, so one archive routes identically on every host. Disable both options for exact routing, where only declared manifest paths resolve.

Constructors

AssetRoutingOptions

public AssetRoutingOptions()

No documentation.

Properties

EnableSinglePageApplicationFallback

public bool EnableSinglePageApplicationFallback { get; init; }

Gets whether a missing path whose last segment has no file extension resolves to the manifest entry point, so client-side routes survive a reload. Defaults to true.

ServeEntryPointAtRoot

public bool ServeEntryPointAtRoot { get; init; }

Gets whether an empty path or / resolves to the manifest entry point. Defaults to true.