From 75ad6346c34acb30f9d6e39c8249431d4cbbedc2 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Sat, 2 Aug 2025 19:00:15 +0200 Subject: [PATCH] removed some unused constants Signed-off-by: Nicola Murino --- internal/httpd/httpd.go | 1 - internal/httpd/httpd_test.go | 1 - internal/httpd/webadmin.go | 61 ++++++++++++++++++------------------ 3 files changed, 30 insertions(+), 33 deletions(-) diff --git a/internal/httpd/httpd.go b/internal/httpd/httpd.go index 203536c0..fe6c088f 100644 --- a/internal/httpd/httpd.go +++ b/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" diff --git a/internal/httpd/httpd_test.go b/internal/httpd/httpd_test.go index 25482d44..e54c513f 100644 --- a/internal/httpd/httpd_test.go +++ b/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" diff --git a/internal/httpd/webadmin.go b/internal/httpd/webadmin.go index 8772d1ef..38820cc8 100644 --- a/internal/httpd/webadmin.go +++ b/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 (