Merge pull request #11 from Noooste/4-static-website-options

Add static option on the UI
This commit is contained in:
Noste
2026-03-07 14:16:57 +01:00
committed by GitHub
10 changed files with 339 additions and 12 deletions
+12
View File
@@ -2,6 +2,7 @@ import axios from 'axios';
import {toast} from 'sonner';
import type {
AccessKey,
ApiResponse,
Bucket,
BucketDetails,
ClusterHealth,
@@ -200,6 +201,17 @@ export const bucketsApi = {
updateSettings: async (name: string, settings: Partial<BucketDetails>): Promise<void> => {
await api.patch(`/v1/buckets/${name}/settings`, settings);
},
updateBucketWebsite: async (
name: string,
payload: { enabled: boolean; indexDocument?: string; errorDocument?: string }
) => {
const response = await api.put<ApiResponse<any>>(
`/v1/buckets/${encodeURIComponent(name)}/website`,
payload
);
return response.data.data;
},
};
// Objects API