landed community membership controls

This commit is contained in:
2026-02-23 15:19:30 -07:00
parent 4db82f63d5
commit 192c0515ab
7 changed files with 353 additions and 14 deletions
+5
View File
@@ -124,6 +124,7 @@ func setupEcho() *echo.Echo {
adminGroup.POST("/logo", ui.AmWrap(EditCommunityLogo))
adminGroup.Match(GetAndPost, "/audit", ui.AmWrap(CommunityAudit))
adminGroup.GET("/category", ui.AmWrap(CommunityCategory))
adminGroup.Match(GetAndPost, "/members", ui.AmWrap(CommunityMembers))
adminGroup.GET("/massmail", ui.AmWrap(CommunityEmailForm))
adminGroup.POST("/massmail", ui.AmWrap(CommunityEmail))
@@ -189,6 +190,7 @@ var ampool *util.WorkerPool
// main is Ye Olde Main Function.
func main() {
start := time.Now()
// Configure the system.
config.SetupConfig()
closer, err := database.SetupDb()
@@ -230,6 +232,9 @@ func main() {
database.AmStoreAudit(database.AmNewAudit(database.AuditShutdown, 0, myIP.String()))
}()
stime := time.Since(start)
log.Infof("Amsterdam startup sequence completed in %v", stime)
// Start server
go func() {
if err := e.Start(":1323"); err != nil && err != http.ErrServerClosed {