From a218e826b2171ca891fbcd20b5e6644081a6ac23 Mon Sep 17 00:00:00 2001 From: Katajisto Date: Fri, 1 Aug 2025 20:38:17 +0300 Subject: [PATCH] make work with prefixed url --- templates/books.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/books.html b/templates/books.html index 1662296..35e2c59 100644 --- a/templates/books.html +++ b/templates/books.html @@ -25,7 +25,7 @@
{{range .books}}
- Cover of {{.Name}} + Cover of {{.Name}}

{{.Name}}

@@ -59,7 +59,7 @@ console.log(`Updating Book ID: ${bookId}, Person: ${person}, Read: ${isRead}`); // Send the data to the backend API endpoint - fetch(`/books/${bookId}/update`, { + fetch(`./books/${bookId}/update`, { method: 'POST', headers: { 'Content-Type': 'application/json',