PlotDirector/PlotLine/Controllers/StoryBibleController.cs
Nick Beckley 30845f05cd Phase 1O
2026-06-01 11:39:35 +01:00

14 lines
379 B
C#

using Microsoft.AspNetCore.Mvc;
using PlotLine.Services;
namespace PlotLine.Controllers;
public sealed class StoryBibleController(IStoryBibleService storyBible) : Controller
{
public async Task<IActionResult> Index(int projectId, string? q)
{
var model = await storyBible.GetAsync(projectId, q);
return model is null ? NotFound() : View(model);
}
}