update gui
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user