using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using PlotLine.Services; namespace PlotLine.Controllers; [Authorize(Policy = "AdminOnly")] [Route("Development")] public sealed class DevelopmentController( IWebHostEnvironment environment, IIllustrationLibraryService illustrationLibrary) : Controller { [HttpGet("StoryIntelligenceExperience")] public async Task StoryIntelligenceExperience() { if (!environment.IsDevelopment()) { return NotFound(); } var model = StoryIntelligenceExperiencePrototypeData.Build(); await illustrationLibrary.ApplyApprovedIllustrationsAsync(model); return View(model); } }