Add basic support for the "Versioning" command

This commit is contained in:
Quentin Dufour
2021-05-14 22:33:26 +02:00
parent 6ccffc3162
commit 5fdabf3e75
3 changed files with 48 additions and 0 deletions
+3
View File
@@ -221,6 +221,9 @@ async fn handler_inner(garage: Arc<Garage>, req: Request<Body>) -> Result<Respon
if params.contains_key("location") {
// GetBucketLocation call
Ok(handle_get_bucket_location(garage)?)
} else if params.contains_key("versioning") {
// GetBucketVersioning
Ok(handle_get_bucket_versioning()?)
} else {
// ListObjects or ListObjectsV2 query
let q = parse_list_objects_query(bucket, &params)?;