change routes and add todos

This commit is contained in:
Isaac Wise
2024-02-10 02:29:15 -06:00
parent 26997475fd
commit da0533ac36
4 changed files with 16 additions and 2 deletions
+2 -2
View File
@@ -129,7 +129,7 @@ const useLinkStore = create<LinkStore>()((set) => ({
return { ok: response.ok, data: data.response };
},
updateLinksById: async (linkIds, data) => {
const response = await fetch("/api/v1/links/bulk", {
const response = await fetch("/api/v1/links", {
body: JSON.stringify({ linkIds, data }),
headers: {
"Content-Type": "application/json",
@@ -172,7 +172,7 @@ const useLinkStore = create<LinkStore>()((set) => ({
return { ok: response.ok, data: data.response };
},
deleteLinksById: async (linkIds: number[]) => {
const response = await fetch("/api/v1/links/bulk", {
const response = await fetch("/api/v1/links", {
body: JSON.stringify({ linkIds }),
headers: {
"Content-Type": "application/json",