Move bookmark container API endpoints to their own controller

This commit is contained in:
Neil Brommer 2021-11-23 21:55:04 -08:00
parent b8b23abffc
commit 4623d8838d
5 changed files with 95 additions and 72 deletions

View file

@ -51,7 +51,7 @@
protected async void OnSubmit()
{
HttpResponseMessage response = await Http
.PostAsJsonAsync("Bookmarks/CreateBookmarkContainer", model.Title);
.PostAsJsonAsync("BookmarkContainers/Create", model.Title);
Stream stream = response.RequestMessage!.Content!.ReadAsStream();
StreamReader reader = new StreamReader(stream);

View file

@ -42,7 +42,7 @@
try
{
HttpResponseMessage result = await Http
.DeleteAsync($"Bookmarks/DeleteBookmarkContainer/{this.BookmarkContainerId}");
.DeleteAsync($"BookmarkContainers/Delete/{this.BookmarkContainerId}");
if (result.StatusCode == System.Net.HttpStatusCode.OK)
{