diff --git a/cmd/dwelling-home/main.go b/cmd/dwelling-home/main.go index f33bbd0..5334998 100644 --- a/cmd/dwelling-home/main.go +++ b/cmd/dwelling-home/main.go @@ -69,6 +69,7 @@ func main() { srv.DELETE("/guestbook/admin/entry/:id", hand.GuestbookAdminDeleteEntry) srv.POST("/guestbook/admin/entry/:id", hand.GuestbookAdminUpdateEntry) srv.DELETE("/guestbook/admin/reply/:id", hand.GuestbookAdminDeleteReply) + srv.POST("/guestbook/admin/reply/:id", hand.GuestbookAdminUpdateReply) srv.POST("/guestbook/admin/reply/", hand.GuestbookAdminReply) srv.GET("/robots.txt", hand.Robots) diff --git a/internal/http/handlers.go b/internal/http/handlers.go index 5b2fd71..a170cc9 100644 --- a/internal/http/handlers.go +++ b/internal/http/handlers.go @@ -212,6 +212,9 @@ func (h *Handlers) GuestbookAdminDeleteReply(w http.ResponseWriter, r *http.Requ } } +func (h *Handlers) GuestbookAdminUpdateReply(w http.ResponseWriter, r *http.Request) { +} + func (h *Handlers) GuestbookAdminReply(w http.ResponseWriter, r *http.Request) { r.ParseForm()