summaryrefslogtreecommitdiff
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/recipes.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/view/recipes.go b/view/recipes.go
index bd4c72b..fe995b2 100644
--- a/view/recipes.go
+++ b/view/recipes.go
@@ -9,7 +9,8 @@ import (
func RecipesRead(w http.ResponseWriter, r *http.Request) {
recipes := make(model.Recipes, 0)
- err := recipes.Read()
+ var obj model.Object = &recipes
+ err := model.Transaction(obj.Read)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return