Serve compiled front from the same application

also add embedded build for production
This commit is contained in:
2026-02-11 01:12:53 +01:00
parent 8fc5ff84c2
commit e127088195
28 changed files with 200 additions and 130 deletions

View File

@@ -32,7 +32,7 @@ func TestSearchBook_OneBookNotUserBook(t *testing.T) {
Rating: 0,
Read: false,
WantRead: false,
CoverPath: "/bookcover/iliade.jpeg",
CoverPath: "/static/bookcover/iliade.jpeg",
}},
result.Books)
}
@@ -48,7 +48,7 @@ func TestSearchBook_OneBookRead(t *testing.T) {
Rating: 7,
Read: true,
WantRead: false,
CoverPath: "/bookcover/lesdieuxontsoif.jpg",
CoverPath: "/static/bookcover/lesdieuxontsoif.jpg",
}},
result.Books)
}
@@ -64,7 +64,7 @@ func TestSearchBook_ISBN(t *testing.T) {
Rating: 6,
Read: true,
WantRead: false,
CoverPath: "/bookcover/lecomplotcontrelamerique.jpg",
CoverPath: "/static/bookcover/lecomplotcontrelamerique.jpg",
}},
result.Books)
}
@@ -102,7 +102,7 @@ func TestSearchBook_Offset(t *testing.T) {
func testSearchBook(t *testing.T, searchterm string, limit string, offset string) dto.BookSearchGet {
router := testutils.TestSetup()
u, err := url.Parse("/search/" + searchterm)
u, err := url.Parse("/ws/search/" + searchterm)
if err != nil {
t.Error(err)
}