22 lines
559 B
C#
22 lines
559 B
C#
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) : Controller
|
|
{
|
|
[HttpGet("StoryIntelligenceExperience")]
|
|
public IActionResult StoryIntelligenceExperience()
|
|
{
|
|
if (!environment.IsDevelopment())
|
|
{
|
|
return NotFound();
|
|
}
|
|
|
|
return View(StoryIntelligenceExperiencePrototypeData.Build());
|
|
}
|
|
}
|