Fix blog comment endpoint path and add regression test

This commit is contained in:
Paul Schneider 2026-08-10 21:48:03 +01:00
commit 66fcdc68d4
4 changed files with 41 additions and 5 deletions

View file

@ -23,7 +23,7 @@ namespace Yavsc.ViewComponents
var comment = await context.Comment.Include(c=>c.Children).FirstOrDefaultAsync(c => c.Id==id);
if (comment == null)
throw new InvalidOperationException();
ViewBag.apictlr = "/api/blogcomments";
ViewBag.apictlr = "/api/v1/blogcomments";
return View("Default", comment);
}