homepage.js/middleware/index.js

18 lines
444 B
JavaScript

const express = require('express');
const router = express.Router();
const minify = require('express-minify');
router.use(require('./template'));
router.use(require('./cookie'));
router.use(require('./session'));
router.use(require('./session_back'));
router.use(minify({
cache: process.env.APP_DEBUG == true,
uglifyJS: null,
errorHandler: console.error,
css_match: /.css^/,
js_match: /.js^/
}));
module.exports = router;