update gui

This commit is contained in:
2026-07-28 20:45:34 -05:00
parent 8dcee4121b
commit 510d5490f9
13 changed files with 606 additions and 40 deletions
+5 -1
View File
@@ -66,6 +66,8 @@ type authorizationRecord struct {
RevokedAt sql.NullTime
Packages string
Actions string
PackageIDs map[uint64]bool
ActionSlugs map[string]bool
}
type auditRecord struct {
@@ -103,7 +105,8 @@ type pageData struct {
FleetHosts []fleetHostRecord
NewCode string
DefaultHostLimit int
DefaultDuration string
DefaultDays int
MaxHostLimit int
Error string
Notice string
GiteaLoginURL string
@@ -200,6 +203,7 @@ func (s *Server) Routes() http.Handler {
mux.HandleFunc("GET /portal/audit", s.requireTechnician(s.handleAuditPortal))
mux.HandleFunc("GET /portal/hosts", s.requireTechnician(s.handleFleetPortal))
mux.HandleFunc("POST /portal/authorizations", s.requireTechnician(s.handleCreateAuthorization))
mux.HandleFunc("POST /portal/authorizations/{id}/update", s.requireTechnician(s.handleUpdateAuthorization))
mux.HandleFunc("POST /portal/authorizations/{id}/revoke", s.requireTechnician(s.handleRevokeAuthorization))
mux.HandleFunc("POST /portal/packages", s.requireTechnician(s.handleUpsertPackage))
mux.HandleFunc("POST /portal/packages/upload", s.requireTechnician(s.handleUploadPackage))