Serve compiled front from the same application
also add embedded build for production
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user