Ajouter routes vers handlers skelettes documents
This commit is contained in:
parent
2373dfb681
commit
902e57cb1f
1 changed files with 8 additions and 0 deletions
|
@ -116,6 +116,14 @@ func RunServer() {
|
||||||
|
|
||||||
groupV1.GET("/bucket/:bucket", handleV1BucketRead)
|
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
|
// Static Routes
|
||||||
|
|
||||||
e.GET("/static/general.css", handleStaticCSSGeneral)
|
e.GET("/static/general.css", handleStaticCSSGeneral)
|
||||||
|
|
Loading…
Reference in a new issue