diff options
Diffstat (limited to 'view/recipe.go')
-rw-r--r-- | view/recipe.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/view/recipe.go b/view/recipe.go index 7b9980d..8236476 100644 --- a/view/recipe.go +++ b/view/recipe.go @@ -51,3 +51,13 @@ func RecipeRead(w http.ResponseWriter, r *http.Request) { return } } + +func RecipeCreate(w http.ResponseWriter, r *http.Request) { + recipe := model.Recipe{} + + err := html.ExecuteTemplate(w, "recipe-edit", recipe) + if err != nil { + http.Error(w, err.Error(), http.StatusInternalServerError) + return + } +} |