implement bookmark delete

This commit is contained in:
2025-05-07 15:47:08 +01:00
parent 30cc4d3fb5
commit e87a6586b6
26 changed files with 763 additions and 149 deletions

View File

@@ -3,9 +3,10 @@ import { useMutation } from "@tanstack/react-query"
function useLogin() {
return useMutation({
mutationFn: async (creds: { username: string; password: string }) => {
await fetch("/api/login", {
return await fetch(`${import.meta.env.VITE_API_URL}/api/login`, {
method: "POST",
body: JSON.stringify(creds),
credentials: "include",
})
},
})