Skip to content

Commit

Permalink
ARSN-422: add objectPost callApiMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Toozs committed Jul 1, 2024
1 parent a643a3e commit 6a568af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/s3routes/routes/routePOST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 6a568af

Please sign in to comment.