Compare commits

...

1 Commits

Author SHA1 Message Date
Ilke f94acd0e6d ft: S3C-2790 add getObjectLockConfiguration route 2020-05-05 15:34:58 -07:00
1 changed files with 12 additions and 5 deletions

View File

@ -78,6 +78,13 @@ function routerGET(request, response, api, log, statsClient, dataRetrievalFn) {
return routesUtils.responseXMLBody(err, xml, response,
log, corsHeaders);
});
} else if (request.query['object-lock'] !== undefined) {
api.callApiMethod('bucketGetObjectLock', request, response, log,
(err, xml, corsHeaders) => {
routesUtils.statsReport500(err, statsClient);
return routesUtils.responseXMLBody(err, xml, response,
log, corsHeaders);
});
} else {
// GET bucket
api.callApiMethod('bucketGet', request, response, log,