using CodeLiturgy.Data.Auth.Context.Users; using CodeLiturgy.Views.Utils; using Duende.IdentityServer.Extensions; using Microsoft.AspNetCore.Mvc; namespace CodeLiturgy.Views.Controllers; public class EnvironmentsPageController : UserController { public EnvironmentsPageController(ApplicationUserManager userManager, ILogger logger) : base(userManager, logger) { } public override void OnInitialization() { base.OnInitialization(); SetHeaderMenu(new List() { }); } public async Task Index() { await OnEveryAction(); if (!User.IsAuthenticated()) { return Redirect("/auth/login"); } return View(); } }