add statistics storage

This commit is contained in:
Robin Olsen
2026-01-31 21:07:09 +01:00
parent a3a1d71325
commit 4225d202bb
10 changed files with 154 additions and 24 deletions

View File

@@ -1,6 +1,7 @@
package server
import (
"beadstest/internal/service"
"embed"
"fmt"
"net/http"
@@ -10,10 +11,11 @@ import (
)
type Server struct {
Port int
Assets embed.FS
Routes []Route
Service beads.Storage
Port int
Assets embed.FS
Routes []Route
Service beads.Storage
StatisticsService *service.StatisticsService
}
// NewServer creates and configures a new HTTP server instance.