Added PUT endpoints in main.
This commit is contained in:
parent
005330ff2c
commit
57879522a1
@ -51,8 +51,10 @@ func main() {
|
|||||||
|
|
||||||
srv.GET("/", hand.Entries)
|
srv.GET("/", hand.Entries)
|
||||||
srv.POST("/", hand.New)
|
srv.POST("/", hand.New)
|
||||||
|
srv.PUT("/:entry", hand.Update)
|
||||||
srv.DELETE("/:entry", hand.Delete)
|
srv.DELETE("/:entry", hand.Delete)
|
||||||
srv.POST("/:entry/reply", hand.Reply)
|
srv.POST("/:entry/reply", hand.Reply)
|
||||||
|
srv.PUT("/:entry/reply", hand.Update)
|
||||||
srv.DELETE("/:entry/reply", hand.Delete)
|
srv.DELETE("/:entry/reply", hand.Delete)
|
||||||
|
|
||||||
var network string
|
var network string
|
||||||
|
Loading…
Reference in New Issue
Block a user