Files

14 lines
421 B
C#
Raw Permalink Normal View History

using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc.RazorPages;
using SoroushAsadi.Services;
namespace SoroushAsadi.Pages.Admin.Posts;
[Authorize]
public class PostsIndexModel(ContentService content) : PageModel
{
public IReadOnlySet<string> OverrideSlugs { get; private set; } = new HashSet<string>();
public void OnGet() => OverrideSlugs = content.GetPostOverrides().Keys.ToHashSet();
}