PlotDirector/PlotLine/Controllers/RelationshipMapController.cs
Nick Beckley 1410666a39 Phase 2D
2026-06-03 22:22:36 +01:00

14 lines
544 B
C#

using Microsoft.AspNetCore.Mvc;
using PlotLine.Services;
namespace PlotLine.Controllers;
public sealed class RelationshipMapController(IRelationshipMapService relationshipMap) : Controller
{
public async Task<IActionResult> Index(int projectId, int? bookId, int? chapterId, int? sceneId, int? focusCharacterId, bool showFullNetwork = false)
{
var model = await relationshipMap.GetAsync(projectId, bookId, chapterId, sceneId, focusCharacterId, showFullNetwork);
return model is null ? NotFound() : View(model);
}
}