Browse Source

removed some unused constants

Signed-off-by: Nicola Murino <[email protected]>
Nicola Murino 4 months ago
parent
commit
75ad6346c3
3 changed files with 30 additions and 33 deletions
  1. 0 1
      internal/httpd/httpd.go
  2. 0 1
      internal/httpd/httpd_test.go
  3. 30 31
      internal/httpd/webadmin.go

+ 0 - 1
internal/httpd/httpd.go

@@ -83,7 +83,6 @@ const (
 	user2FARecoveryCodesPath              = "/api/v2/user/2fa/recoverycodes"
 	userProfilePath                       = "/api/v2/user/profile"
 	userSharesPath                        = "/api/v2/user/shares"
-	retentionBasePath                     = "/api/v2/retention/users"
 	retentionChecksPath                   = "/api/v2/retention/users/checks"
 	fsEventsPath                          = "/api/v2/events/fs"
 	providerEventsPath                    = "/api/v2/events/provider"

+ 0 - 1
internal/httpd/httpd_test.go

@@ -126,7 +126,6 @@ const (
 	user2FARecoveryCodesPath       = "/api/v2/user/2fa/recoverycodes"
 	userProfilePath                = "/api/v2/user/profile"
 	userSharesPath                 = "/api/v2/user/shares"
-	retentionBasePath              = "/api/v2/retention/users"
 	fsEventsPath                   = "/api/v2/events/fs"
 	providerEventsPath             = "/api/v2/events/provider"
 	logEventsPath                  = "/api/v2/events/logs"

+ 30 - 31
internal/httpd/webadmin.go

@@ -73,37 +73,36 @@ const (
 )
 
 const (
-	templateAdminDir         = "webadmin"
-	templateBase             = "base.html"
-	templateFsConfig         = "fsconfig.html"
-	templateSharedComponents = "sharedcomponents.html"
-	templateUsers            = "users.html"
-	templateUser             = "user.html"
-	templateAdmins           = "admins.html"
-	templateAdmin            = "admin.html"
-	templateConnections      = "connections.html"
-	templateGroups           = "groups.html"
-	templateGroup            = "group.html"
-	templateFolders          = "folders.html"
-	templateFolder           = "folder.html"
-	templateEventRules       = "eventrules.html"
-	templateEventRule        = "eventrule.html"
-	templateEventActions     = "eventactions.html"
-	templateEventAction      = "eventaction.html"
-	templateRoles            = "roles.html"
-	templateRole             = "role.html"
-	templateEvents           = "events.html"
-	templateStatus           = "status.html"
-	templateDefender         = "defender.html"
-	templateIPLists          = "iplists.html"
-	templateIPList           = "iplist.html"
-	templateConfigs          = "configs.html"
-	templateProfile          = "profile.html"
-	templateMaintenance      = "maintenance.html"
-	templateMFA              = "mfa.html"
-	templateSetup            = "adminsetup.html"
-	defaultQueryLimit        = 1000
-	inversePatternType       = "inverse"
+	templateAdminDir     = "webadmin"
+	templateBase         = "base.html"
+	templateFsConfig     = "fsconfig.html"
+	templateUsers        = "users.html"
+	templateUser         = "user.html"
+	templateAdmins       = "admins.html"
+	templateAdmin        = "admin.html"
+	templateConnections  = "connections.html"
+	templateGroups       = "groups.html"
+	templateGroup        = "group.html"
+	templateFolders      = "folders.html"
+	templateFolder       = "folder.html"
+	templateEventRules   = "eventrules.html"
+	templateEventRule    = "eventrule.html"
+	templateEventActions = "eventactions.html"
+	templateEventAction  = "eventaction.html"
+	templateRoles        = "roles.html"
+	templateRole         = "role.html"
+	templateEvents       = "events.html"
+	templateStatus       = "status.html"
+	templateDefender     = "defender.html"
+	templateIPLists      = "iplists.html"
+	templateIPList       = "iplist.html"
+	templateConfigs      = "configs.html"
+	templateProfile      = "profile.html"
+	templateMaintenance  = "maintenance.html"
+	templateMFA          = "mfa.html"
+	templateSetup        = "adminsetup.html"
+	defaultQueryLimit    = 1000
+	inversePatternType   = "inverse"
 )
 
 var (