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 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); } }