feat: Ajouter route /bucket/:bucket/many pour V1DocumentsPOST

Nécessite plus de travail sur les fonctions sous-jacentes, mais la route
devrait au moins maintenant exister.

Sera éventuellement utilisée pour remplacer `/bucket/:bucket`.

TODO Tests nécessaires.
This commit is contained in:
Victor Lacasse-Beaudoin 2023-12-18 17:46:31 -05:00
parent d3ad8f4a91
commit ff3e811457

View file

@ -242,6 +242,12 @@ func RunServer() {
log.Fatal(err) 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[ if err := pave.EchoRegister[
apirequest.V1DocumentPOST, apirequest.V1DocumentPOST,
apiresponse.V1DocumentPOST](groupV1, &p, "/v1", http.MethodPost, "/bucket/:bucket", "Upload document to specified bucket", "V1DocumentPOST", v1Handler.V1DocumentPOST); err != nil { apiresponse.V1DocumentPOST](groupV1, &p, "/v1", http.MethodPost, "/bucket/:bucket", "Upload document to specified bucket", "V1DocumentPOST", v1Handler.V1DocumentPOST); err != nil {