consolidated UI setup into a single function call from main

This commit is contained in:
2026-02-20 15:52:36 -07:00
parent 8a1c770079
commit 7ae9326292
6 changed files with 38 additions and 13 deletions
+2 -5
View File
@@ -30,6 +30,7 @@ import (
log "github.com/sirupsen/logrus"
)
// GetAndPost is used to have functions that respond to both GET and POST on a URI.
var GetAndPost = []string{http.MethodGet, http.MethodPost}
// setupEcho creates, configures, and returns a new Echo instance.
@@ -181,11 +182,7 @@ func main() {
closer = email.SetupMailSender()
defer closer()
htmlcheck.SetupDicts()
ui.SetupTemplates()
ui.SetupMenuCache()
closer = ui.SetupAmSessionManager()
defer closer()
closer = ui.SetupAmContext()
closer = ui.SetupUILayer()
defer closer()
// Set up to trap SIGINT/SIGTERM and shut down gracefully