diff --git a/cmd/server.go b/cmd/server.go index 5f61cd0..fc7f54b 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -242,6 +242,12 @@ func RunServer() { log.Fatal(err) } + if err := pave.EchoRegister[ + apirequest.V1DocumentsPOST, + apiresponse.V1DocumentsPOST](groupV1, &p, "/v1", http.MethodPost, "/bucket/:bucket/many", "Upload documents to specified bucket", "V1DocumentsPOST", v1Handler.V1DocumentsPOST); err != nil { + log.Fatal(err) + } + 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 {