aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/web/web_server.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/web/web_server.rs b/src/web/web_server.rs
index 2440857d..cbb2aaac 100644
--- a/src/web/web_server.rs
+++ b/src/web/web_server.rs
@@ -57,6 +57,13 @@ async fn handler(
let path = req.uri().path().to_string();
let key = percent_encoding::percent_decode_str(&path).decode_utf8()?;
+ // Get bucket descriptor
+ let object = garage
+ .object_table
+ .get(&bucket.to_string(), &key.to_string())
+ .await?
+ .ok_or(Error::NotFound)?;
+
info!("Selected bucket: \"{}\", selected key: \"{}\"", bucket, key);
Ok(Response::new(Body::from("hello world\n")))