diff options
author | xengineering <me@xengineering.eu> | 2024-01-17 20:56:33 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-01-17 21:03:36 +0100 |
commit | 34fa1017a697287540d92d8c36ecca988f936f16 (patch) | |
tree | 53d28064e51310c1d4e0a2617f35a81f24906498 /main.go | |
parent | 644ddcde14c0545dd667eaf096dadab518ad90a7 (diff) | |
download | ceres-34fa1017a697287540d92d8c36ecca988f936f16.tar ceres-34fa1017a697287540d92d8c36ecca988f936f16.tar.zst ceres-34fa1017a697287540d92d8c36ecca988f936f16.zip |
Add recipe step view
This is the next increment to implement recipe steps.
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -49,6 +49,9 @@ func startServer(addr string) *http.Server { r.HandleFunc("/recipes/{id}/edit", view.RecipeEditHandler).Methods(`GET`) r.HandleFunc("/recipes/{id}", controller.RecipePost).Methods(`POST`) + r.HandleFunc("/recipes/{id}/steps/{step_id}", + view.HandlerHTML(&model.RecipeStep{})).Methods(`GET`) + r.HandleFunc("/", view.HandlerHTML(&model.Index{})).Methods(`GET`) muxer := http.NewServeMux() |