aboutsummaryrefslogtreecommitdiff
path: root/src/api/s3_website.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/s3_website.rs')
-rw-r--r--src/api/s3_website.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/api/s3_website.rs b/src/api/s3_website.rs
index d5864fc8..9d1da905 100644
--- a/src/api/s3_website.rs
+++ b/src/api/s3_website.rs
@@ -13,16 +13,7 @@ use garage_model::garage::Garage;
use garage_table::*;
use garage_util::data::*;
-pub async fn handle_get_website(
- garage: Arc<Garage>,
- bucket_id: Uuid,
-) -> Result<Response<Body>, Error> {
- let bucket = garage
- .bucket_table
- .get(&EmptyKey, &bucket_id)
- .await?
- .ok_or(Error::NoSuchBucket)?;
-
+pub async fn handle_get_website(bucket: &Bucket) -> Result<Response<Body>, Error> {
let param = bucket
.params()
.ok_or_internal_error("Bucket should not be deleted at this point")?;