Support website publishing #7
2 changed files with 5 additions and 3 deletions
|
@ -156,12 +156,11 @@ impl AdminRpcHandler {
|
|||
)))
|
||||
}
|
||||
BucketOperation::Website(query) => {
|
||||
/*let bucket = self.get_existing_bucket(&query.bucket).await?;
|
||||
|
||||
let bucket = self.get_existing_bucket(&query.bucket).await?;
|
||||
if query.allow && query.deny {
|
||||
return Err(Error::Message(format!("Website can not be both allowed and denied on a bucket")));
|
||||
}
|
||||
|
||||
/*
|
||||
if query.allow || query.deny {
|
||||
let exposed = query.allow;
|
||||
if let BucketState::Present(state) = bucket.state.get_mut() {
|
||||
|
|
|
@ -156,6 +156,9 @@ pub struct WebsiteOpt {
|
|||
/// Delete
|
||||
#[structopt(long = "deny")]
|
||||
pub deny: bool,
|
||||
|
||||
/// Bucket name
|
||||
pub bucket: String,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, StructOpt, Debug)]
|
||||
|
|
Loading…
Reference in a new issue