code: func (s *Server) UseMiddleware(m middleware.Middleware) {
  	s.middlewares = append(s.middlewares, m)
  }
docs: // UseMiddleware appends a new middleware to the request chain.
  // This needs to be called before the API routes are configured.