From 312c59564700da719dbafad11c2d9f647b46d912 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 11 Feb 2023 13:08:04 +0100 Subject: Migrate storage.go to global config --- handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'handler.go') diff --git a/handler.go b/handler.go index f7a8840..b6c57c4 100644 --- a/handler.go +++ b/handler.go @@ -264,7 +264,7 @@ func recipeImageGet(w http.ResponseWriter, r *http.Request) { // serve image path := fmt.Sprintf("recipes/image/%s.jpg", idStr) - ServeStorage(w, r, config.Http.Storage, path) + ServeStorage(w, r, path) } func addRecipesGet(w http.ResponseWriter, r *http.Request) { -- cgit v1.2.3-70-g09d2