Support website publishing #7

Merged
lx merged 61 commits from feature/website into master 2021-01-15 16:49:51 +00:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit a3566e49da - Show all commits

View file

@ -156,12 +156,11 @@ impl AdminRpcHandler {
))) )))
} }
BucketOperation::Website(query) => { 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 { if query.allow && query.deny {
return Err(Error::Message(format!("Website can not be both allowed and denied on a bucket"))); return Err(Error::Message(format!("Website can not be both allowed and denied on a bucket")));
} }
/*
if query.allow || query.deny { if query.allow || query.deny {
let exposed = query.allow; let exposed = query.allow;
if let BucketState::Present(state) = bucket.state.get_mut() { if let BucketState::Present(state) = bucket.state.get_mut() {

View file

@ -156,6 +156,9 @@ pub struct WebsiteOpt {
/// Delete /// Delete
#[structopt(long = "deny")] #[structopt(long = "deny")]
pub deny: bool, pub deny: bool,
/// Bucket name
pub bucket: String,
} }
#[derive(Serialize, Deserialize, StructOpt, Debug)] #[derive(Serialize, Deserialize, StructOpt, Debug)]