docs: function middlewares() {
          app.middlewares = {}
          const basePath = path.join(app.root, '/middlewares')
          let middlewares = app.config.get('express').middlewares
          if (middlewares && Array.isArray(middlewares) && middlewares.length) {
              for (let m of middlewares) {
                  let middleware = require(path.join(basePath, m.dest))(app)
                  app.middlewares[m.dest.toLowerCase()] = middleware
  
                  if (middleware.length == 4) { //error handler
                      errorHandlers.push(middleware)
                      continue
                  }
  
                  if (m.src)
                      server.use(m.src, wrapper(middleware))
                  else
                      server.use(wrapper(middleware))
              }
              if (middlewares.length)
                  app.drivers.logger.success('Middleware', 'initialized')
          }
      }