diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -45,15 +45,15 @@ func startServer(addr string) *http.Server { r.PathPrefix("/static/"). Handler(http.StripPrefix("/static/", http.FileServer(http.FS(static)))) - r.HandleFunc("/recipes", view.Recipes).Methods(`GET`) + r.HandleFunc("/recipes", view.RecipesRead).Methods(`GET`) - r.HandleFunc("/recipe/{id:[0-9]+}", view.Recipe).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.RecipeDelete).Methods(`DELETE`) - r.HandleFunc("/favicon.ico", view.Favicon).Methods(`GET`) + r.HandleFunc("/favicon.ico", view.FaviconRead).Methods(`GET`) - r.HandleFunc("/", view.Index).Methods(`GET`) + r.HandleFunc("/", view.IndexRead).Methods(`GET`) muxer := http.NewServeMux() muxer.Handle("/", r) |