diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -47,6 +47,7 @@ func startServer(addr string) *http.Server { r.HandleFunc("/recipes", view.RecipesRead).Methods(`GET`) + r.HandleFunc("/recipe", controller.RecipeCreate).Methods(`POST`) r.HandleFunc("/recipe/{id:[0-9]+}", view.RecipeRead).Methods(`GET`) r.HandleFunc("/recipe/{id:[0-9]+}", controller.RecipeUpdate).Methods(`POST`) r.HandleFunc("/recipe/{id:[0-9]+}", controller.RecipeDelete).Methods(`DELETE`) |