hexo/node_modules/hexo-server/lib/middlewares/static.js

8 lines
188 B
JavaScript
Raw Normal View History

2023-09-25 15:58:56 +08:00
'use strict';
const serveStatic = require('serve-static');
module.exports = function(app) {
app.use(this.config.root, serveStatic(this.public_dir, this.config.server.serveStatic));
};