HTTP server with WebSockets.
All checks were successful
Linting and tests / Linting (push) Successful in 5s

This commit is contained in:
2025-09-20 09:59:09 +05:00
parent cc5d010204
commit f1617efb0f
6 changed files with 71 additions and 8 deletions

View File

@@ -21,6 +21,9 @@ type httpServer struct {
logger *slog.Logger
db core.Database
httpSrv *http.Server
httpMux *http.ServeMux
middlewares []core.HTTPMiddlewareFunc
}
// Initialize initializes service.
@@ -67,6 +70,10 @@ func (h *httpServer) Initialize() error {
h.logger.Info("Initializing...")
h.middlewares = make([]core.HTTPMiddlewareFunc, 0)
h.RegisterMiddleware(h.requestLoggingMiddleware)
return nil
}