21 lines
394 B
JavaScript
21 lines
394 B
JavaScript
import express from 'express'
|
|
import Shim from 'midwest/factories/shim.js'
|
|
import masterTemplate from '../templates/master.mjs'
|
|
import config from '../config/index.mjs'
|
|
|
|
const router = new express.Router()
|
|
|
|
const mw = {
|
|
shim: Shim(config.shim),
|
|
}
|
|
|
|
router.get('/', mw.shim, (req, res, next) => {
|
|
res.preventFlatten = true
|
|
|
|
res.template = masterTemplate
|
|
|
|
next()
|
|
})
|
|
|
|
export default router
|