Déplacer déclarations de route à pave pour API spec autogénérée #176
1 changed files with 5 additions and 1 deletions
|
@ -242,7 +242,11 @@ func RunServer() {
|
|||
log.Fatal(err)
|
||||
}
|
||||
|
||||
groupV1.POST("/bucket/:bucket", v1Handler.V1DocumentPOST)
|
||||
if err := pave.EchoRegister[
|
||||
apirequest.V1DocumentPOST,
|
||||
apiresponse.V1DocumentPOST](groupV1, &p, "/v1", http.MethodPost, "/bucket/:bucket", "Upload document to specified bucket", "V1DocumentPOST", v1Handler.V1DocumentPOST); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
groupV1.GET("/bucket/:bucket/:document", v1Handler.V1DocumentGET)
|
||||
|
||||
|
|
Loading…
Reference in a new issue