ALL SORTS OF THINGS

This commit is contained in:
2025-04-21 23:04:24 -04:00
parent b79b34e8cc
commit 92d4be2f23
3 changed files with 9 additions and 8 deletions

View File

@@ -22,7 +22,9 @@ func Get(c echo.Context) error {
if err != nil || latestImageVal == "" {
c.Logger().Info("Fetching latest image")
latestImageVal, err = client.GetLatestImage()
latestImageVal, err = client.GetLatestImage(func(url string) (*http.Response, error) {
return http.Get(url)
})
if err != nil {
return c.String(http.StatusInternalServerError, "Error fetching latest image")
}