summaryrefslogtreecommitdiff
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/recipe.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/view/recipe.go b/view/recipe.go
index 0578107..c18c078 100644
--- a/view/recipe.go
+++ b/view/recipe.go
@@ -4,14 +4,12 @@ import (
"net/http"
"xengineering.eu/ceres/model"
-
- "github.com/gorilla/mux"
)
func RecipeRead(db *model.DB) func(http.ResponseWriter, *http.Request) {
return func(w http.ResponseWriter, r *http.Request) {
recipe := model.Recipe{}
- recipe.Id = mux.Vars(r)[`id`]
+ recipe.Id = r.PathValue("id")
var obj model.Object = &recipe
err := db.Transaction(obj.Read)