From 6a568af0efab0d78198c72ac4d0039e89572edd4 Mon Sep 17 00:00:00 2001 From: Will Toozs Date: Mon, 24 Jun 2024 13:13:12 +0200 Subject: [PATCH] ARSN-422: add objectPost callApiMethod --- lib/s3routes/routes/routePOST.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/s3routes/routes/routePOST.ts b/lib/s3routes/routes/routePOST.ts index 1854d4b97..d3581324a 100644 --- a/lib/s3routes/routes/routePOST.ts +++ b/lib/s3routes/routes/routePOST.ts @@ -58,6 +58,10 @@ export default function routePOST( corsHeaders)); } + if (objectKey === undefined && Object.keys(query).length === 0) { + return api.callApiMethod('objectPost', request, response, log, (err, resHeaders) => routesUtils.responseNoBody(err, resHeaders, response, 204, log)); + } + return routesUtils.responseNoBody(errors.NotImplemented, null, response, 200, log); }