diff options
author | xengineering <me@xengineering.eu> | 2024-01-08 19:27:47 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-01-08 19:33:24 +0100 |
commit | 43e7bb10eaade56a9444ec089aa3102218231868 (patch) | |
tree | 259e52b1978cfdf7ff979b0614c545d24d957c88 /main.go | |
parent | c6d2e9dadcd08cdf82aab507d9d4d8d58574df20 (diff) | |
download | ceres-43e7bb10eaade56a9444ec089aa3102218231868.tar ceres-43e7bb10eaade56a9444ec089aa3102218231868.tar.zst ceres-43e7bb10eaade56a9444ec089aa3102218231868.zip |
Implement recipe page
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -44,6 +44,8 @@ func startServer(addr string) *http.Server { r.PathPrefix("/static/"). Handler(http.StripPrefix("/static/", http.FileServer(http.FS(static)))) + r.HandleFunc("/recipes/{id}", view.HandlerHTML(&model.Recipe{})).Methods(`GET`) + r.HandleFunc("/", view.HandlerHTML(&model.Index{})).Methods(`GET`) muxer := http.NewServeMux() |