From 57879522a10a3a5c434459ade37517b4799eff69 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Fri, 21 Oct 2022 04:22:26 +0400 Subject: [PATCH] Added PUT endpoints in main. --- cmd/justguestbookd/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/justguestbookd/main.go b/cmd/justguestbookd/main.go index 59ed641..2bce76d 100644 --- a/cmd/justguestbookd/main.go +++ b/cmd/justguestbookd/main.go @@ -51,8 +51,10 @@ func main() { srv.GET("/", hand.Entries) srv.POST("/", hand.New) + srv.PUT("/:entry", hand.Update) srv.DELETE("/:entry", hand.Delete) srv.POST("/:entry/reply", hand.Reply) + srv.PUT("/:entry/reply", hand.Update) srv.DELETE("/:entry/reply", hand.Delete) var network string