Serve compiled front from the same application
also add embedded build for production
This commit is contained in:
@@ -73,12 +73,12 @@ func TestGetReadBooksHandler_CheckOneBook(t *testing.T) {
|
||||
Author: "Truman Capote",
|
||||
Rating: 6,
|
||||
Read: true,
|
||||
CoverPath: "/bookcover/desangfroid.jpg",
|
||||
CoverPath: "/static/bookcover/desangfroid.jpg",
|
||||
}, book)
|
||||
}
|
||||
|
||||
func testGetReadBooksHandler(t *testing.T, router *gin.Engine, userToken string, expectedCode int, limit string, offset string) dto.BookUserGet {
|
||||
u, err := url.Parse("/mybooks/read")
|
||||
u, err := url.Parse("/ws/mybooks/read")
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user