PlotDirector/PlotLine/Controllers/RelationshipMapController.cs
2026-06-06 20:36:54 +01:00

16 lines
598 B
C#

using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Authorization;
using PlotLine.Services;
namespace PlotLine.Controllers;
[Authorize]
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);
}
}