summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index c7a6871..2f398b3 100644
--- a/main.go
+++ b/main.go
@@ -45,6 +45,7 @@ func startServer(addr string) *http.Server {
Handler(http.StripPrefix("/static/", http.FileServer(http.FS(static))))
r.HandleFunc("/recipes", view.Recipes).Methods(`GET`)
r.HandleFunc("/recipe/{id:[0-9]+}", view.Recipe).Methods(`GET`)
+ r.HandleFunc("/", view.Index).Methods(`GET`)
muxer := http.NewServeMux()
muxer.Handle("/", r)