From 902e57cb1f9291d7a1c77002c548867a60089abf Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Mon, 24 Apr 2023 17:19:52 -0400 Subject: [PATCH] Ajouter routes vers handlers skelettes documents --- cmd/server.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/server.go b/cmd/server.go index 0f513d6..1ba060d 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -116,6 +116,14 @@ func RunServer() { groupV1.GET("/bucket/:bucket", handleV1BucketRead) + groupV1.POST("/bucket/:bucket/:document", handleV1DocumentCreate) + + groupV1.GET("/bucket/:bucket/:document", handleV1DocumentRead) + + groupV1.PUT("/bucket/:bucket/:document", handleV1DocumentUpdate) + + groupV1.DELETE("/bucket/:bucket/:document", handleV1DocumentDelete) + // Static Routes e.GET("/static/general.css", handleStaticCSSGeneral)