From 43e7bb10eaade56a9444ec089aa3102218231868 Mon Sep 17 00:00:00 2001
From: xengineering <me@xengineering.eu>
Date: Mon, 8 Jan 2024 19:27:47 +0100
Subject: Implement recipe page

---
 main.go | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'main.go')

diff --git a/main.go b/main.go
index 0d84eef..e7acac1 100644
--- a/main.go
+++ b/main.go
@@ -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()
-- 
cgit v1.2.3-70-g09d2