Web UI setup

This commit is contained in:
nemunaire 2025-10-17 17:18:37 +07:00
commit 4cd184779e
19 changed files with 6026 additions and 2 deletions

View file

@ -34,6 +34,7 @@ import (
"git.happydns.org/happyDeliver/internal/config"
"git.happydns.org/happyDeliver/internal/receiver"
"git.happydns.org/happyDeliver/internal/storage"
"git.happydns.org/happyDeliver/web"
)
const version = "0.1.0-dev"
@ -89,6 +90,7 @@ func runServer(cfg *config.Config) {
// Register API routes
apiGroup := router.Group("/api")
api.RegisterHandlers(apiGroup, handler)
web.DeclareRoutes(cfg, router)
// Start server
log.Printf("Starting API server on %s", cfg.Bind)