package middlewares import ( "inp2025/tcp" "go.uber.org/zap" ) func AccessLog(next tcp.Handler) tcp.Handler { return func(w tcp.ResponseWriter, req *tcp.Request) error { zap.L().Info("access", zap.String("method", string(req.Method)), zap.String("route", req.Route)) return next(w, req) } }