diff options
Diffstat (limited to 'view')
-rw-r--r-- | view/favicon.go | 2 | ||||
-rw-r--r-- | view/index.go | 2 | ||||
-rw-r--r-- | view/recipe.go | 2 | ||||
-rw-r--r-- | view/recipes.go | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/view/favicon.go b/view/favicon.go index 65bfaef..8e3ea79 100644 --- a/view/favicon.go +++ b/view/favicon.go @@ -4,6 +4,6 @@ import ( "net/http" ) -func Favicon(w http.ResponseWriter, r *http.Request) { +func FaviconRead(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusNoContent) } diff --git a/view/index.go b/view/index.go index 8b9e73f..7d12783 100644 --- a/view/index.go +++ b/view/index.go @@ -4,6 +4,6 @@ import ( "net/http" ) -func Index(w http.ResponseWriter, r *http.Request) { +func IndexRead(w http.ResponseWriter, r *http.Request) { http.Redirect(w, r, "/recipes", http.StatusSeeOther) } diff --git a/view/recipe.go b/view/recipe.go index 25abc6b..c488481 100644 --- a/view/recipe.go +++ b/view/recipe.go @@ -8,7 +8,7 @@ import ( "github.com/gorilla/mux" ) -func Recipe(w http.ResponseWriter, r *http.Request) { +func RecipeRead(w http.ResponseWriter, r *http.Request) { recipe := model.Recipe{} recipe.Id = mux.Vars(r)[`id`] diff --git a/view/recipes.go b/view/recipes.go index 3a5fbf8..bd4c72b 100644 --- a/view/recipes.go +++ b/view/recipes.go @@ -6,7 +6,7 @@ import ( "xengineering.eu/ceres/model" ) -func Recipes(w http.ResponseWriter, r *http.Request) { +func RecipesRead(w http.ResponseWriter, r *http.Request) { recipes := make(model.Recipes, 0) err := recipes.Read() |