feat: new handlers - WIP
This commit is contained in:
@@ -118,7 +118,6 @@ func getBook(service book.UseCase) http.Handler {
|
||||
return
|
||||
}
|
||||
data, err := service.Get(id)
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
if err != nil && err != domain.ErrNotFound {
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
w.Write([]byte(errorMessage))
|
||||
|
||||
Reference in New Issue
Block a user