aboutsummaryrefslogtreecommitdiff
path: root/src/api/api_server.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-05-14 22:33:26 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-05-14 22:33:26 +0200
commit5fdabf3e75ba16b5ceed99edb1912cb001765d03 (patch)
treed9288733c910cfac9217668b0d9b8360d72ab4e8 /src/api/api_server.rs
parent6ccffc316228bb056fa135cc5fceb2ed75f545f5 (diff)
downloadgarage-5fdabf3e75ba16b5ceed99edb1912cb001765d03.tar.gz
garage-5fdabf3e75ba16b5ceed99edb1912cb001765d03.zip
Add basic support for the "Versioning" command
Diffstat (limited to 'src/api/api_server.rs')
-rw-r--r--src/api/api_server.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/api/api_server.rs b/src/api/api_server.rs
index 40862eb7..52031ae0 100644
--- a/src/api/api_server.rs
+++ b/src/api/api_server.rs
@@ -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)?;