Lot 3 (4/5) : API admin S3, variables S3_*, tests et documentation

GET/PUT /api/admin/s3 et POST /api/admin/s3/test (administrateurs) ;
S3_ENDPOINT, S3_REGION, S3_BUCKET, S3_ACCESS_KEY, S3_SECRET_KEY (_FILE),
S3_INSECURE ; miniatures S3 sous DATA_DIR/.s3cache.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LNfwm4pfYR9C914C2EeiuB
This commit is contained in:
claude BotandClaude Opus 5.5 committed 2026-11-20 18:05:17 +01:00
1 parent 53972f9762
commit e79a813272
6 files changed
+95

No files matched your search

+4
View File
@@ -32,6 +32,7 @@
// POST /api/public/{jeton}/unlock mot de passe d'un lien protégé
// GET /api/public/{jeton}/file|zip|thumb|preview contenu d'un lien de partage
// GET /api/settings / PUT paramètres (écriture : administrateur)
// GET /api/admin/s3 / PUT, POST /api/admin/s3/test racine S3 (administrateur)
// GET /api/logo / PUT (image/png) / DELETE logo 64x64
// POST /api/account/password changement du mot de passe (compte local)
// PATCH /api/account nom et e-mail (compte local)
@@ -173,6 +174,9 @@ func (h *Handler) Register(mux *http.ServeMux) {
mux.HandleFunc("GET /api/logo", h.readLogo)
mux.HandleFunc("PUT /api/logo", h.writeLogo)
mux.HandleFunc("DELETE /api/logo", h.deleteLogo)
mux.HandleFunc("GET /api/admin/s3", h.adminS3)
mux.HandleFunc("PUT /api/admin/s3", h.adminSaveS3)
mux.HandleFunc("POST /api/admin/s3/test", h.adminTestS3)
if h.Accounts != nil {
mux.HandleFunc("POST /api/account/password", h.changePassword)
mux.HandleFunc("PATCH /api/account", h.patchAccount)