Files
mixtape/zero.Core/Entities/IRoutedEntity.cs
T
2020-10-22 15:45:34 +02:00

27 lines
535 B
C#

using System.Collections.Generic;
namespace zero.Core.Entities
{
public interface IRoutedEntity : IZeroEntity
{
/// <summary>
/// Url for this entity
/// </summary>
public UrlRoute Route { get; set; }
}
public class UrlRoute
{
/// <summary>
/// Url for this entity
/// </summary>
public string Url { get; set; }
/// <summary>
/// Route dependencies can be used for cache busting
/// </summary>
public IList<string> Dependencies { get; set; } = new List<string>();
}
}