diff options
author | xengineering <me@xengineering.eu> | 2024-02-12 20:33:24 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-02-13 20:26:47 +0100 |
commit | bf0ad86df2e64191f6c430c328fee211ac3affa7 (patch) | |
tree | 6bde15b19d89cc31c9ed6e42a4cbccfb6dd6c4c8 /main.go | |
parent | 40868be7d4b9e1d9909a19dccc25ec49c1b5924b (diff) | |
download | ceres-bf0ad86df2e64191f6c430c328fee211ac3affa7.tar ceres-bf0ad86df2e64191f6c430c328fee211ac3affa7.tar.zst ceres-bf0ad86df2e64191f6c430c328fee211ac3affa7.zip |
view: Implement GET handler for model.Recipe
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -44,6 +44,7 @@ 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("/recipe/{id:[0-9]+}", view.Recipe).Methods(`GET`) muxer := http.NewServeMux() muxer.Handle("/", r) |