Full web : fichiers restants
This commit is contained in:
1 parent
ec3b7c9a01
commit
4826fa5b82
26 files changed
+2537
-793
No files matched your search
@@ -1,7 +1,8 @@
|
||||
// Package server is the web UI of pve-confsync (phases 1 and 2): cluster list,
|
||||
// visual diff per client, dry-run and synchronization per object, per client or
|
||||
// global, execution journal and audit trail. The pages (web/) are embedded in
|
||||
// the binary; the API is JSON under /api/.
|
||||
// Package server is the web UI of pve-confsync, the only way to use it: first
|
||||
// administrator, clusters (root credentials, primary and targets), replicated
|
||||
// kinds, visual diff per target, dry-run and synchronization per object, per
|
||||
// target or towards several targets, execution journal and audit trail. The
|
||||
// pages (web/) are embedded in the binary; the API is JSON under /api/.
|
||||
package server
|
||||
|
||||
import (
|
||||
@@ -77,10 +78,10 @@ func (s *Server) Handler() http.Handler {
|
||||
mux.Handle("PUT /api/clusters/{name}", s.role(admin, s.handleSaveCluster))
|
||||
mux.Handle("DELETE /api/clusters/{name}", s.role(admin, s.handleDeleteCluster))
|
||||
mux.Handle("POST /api/clusters/{name}/check", s.role(admin, s.handleCheckCluster))
|
||||
mux.Handle("POST /api/clusters/{name}/role", s.role(admin, s.handleRole))
|
||||
mux.Handle("POST /api/clusters/{name}/forget", s.role(admin, s.handleForget))
|
||||
mux.Handle("GET /api/settings", s.role(viewer, s.handleSettings))
|
||||
mux.Handle("PUT /api/settings", s.role(admin, s.handleSaveSettings))
|
||||
mux.Handle("GET /api/config/export", s.role(admin, s.handleExport))
|
||||
mux.Handle("POST /api/config/import", s.role(admin, s.handleImport))
|
||||
|
||||
mux.Handle("GET /api/users", s.role(admin, s.handleUsers))
|
||||
mux.Handle("PUT /api/users/{name}", s.role(admin, s.handleSaveUser))
|
||||
|
||||
Reference in new issue
Block a user