var express = require('express'); //引入express模块 var path = require('path'); //引入path模块,该模块包括了一些处理文件路径的功能 var favicon = require('serve-favicon'); //图标缓存服务中间件 var logger = require('morgan'); //HTTP请求日志中间件 var cookieParser = require('cookie-parser'); //…