Support website publishing #7

Merged
lx merged 61 commits from feature/website into master 2021-01-15 16:49:51 +00:00
Showing only changes of commit 011ff87b5f - Show all commits

View file

@ -166,6 +166,7 @@ impl AdminRpcHandler {
if let BucketState::Present(state) = bucket.state.get_mut() { if let BucketState::Present(state) = bucket.state.get_mut() {
state.website.update(query.allow); state.website.update(query.allow);
self.garage.bucket_table.insert(&bucket).await?;
let msg = if query.allow { let msg = if query.allow {
format!("Website access allowed for {}", &query.bucket) format!("Website access allowed for {}", &query.bucket)
} else { } else {