summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index ec061c2..1660088 100644
--- a/main.go
+++ b/main.go
@@ -48,7 +48,7 @@ func startServer(addr string) *http.Server {
r.HandleFunc("/recipes", view.RecipesRead).Methods(`GET`)
r.HandleFunc("/recipe/{id:[0-9]+}", view.RecipeRead).Methods(`GET`)
- r.HandleFunc("/recipe", controller.RecipeUpdate).Methods(`POST`)
+ r.HandleFunc("/recipe/{id:[0-9]+}", controller.RecipeUpdate).Methods(`POST`)
r.HandleFunc("/recipe/{id:[0-9]+}", controller.RecipeDelete).Methods(`DELETE`)
r.HandleFunc("/favicon.ico", view.FaviconRead).Methods(`GET`)