Fix blog comment endpoint path and add regression test
This commit is contained in:
parent
4e1ceb729c
commit
66fcdc68d4
4 changed files with 41 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue