1
0
Fork 0

Added PUT endpoints in main.

This commit is contained in:
Alexander Andreev 2022-10-21 04:22:26 +04:00
parent 005330ff2c
commit 57879522a1
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F
1 changed files with 2 additions and 0 deletions

View File

@ -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