-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1f40c9
commit 2e858d5
Showing
3 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,29 @@ | ||
'use strict'; | ||
|
||
const asyncHandler = require('express-async-handler'); | ||
|
||
// const config = require('../node.config.js'); | ||
// const simpleI18n = require('../helpers/server-simple-i18n.js'); | ||
|
||
module.exports = { | ||
// exposeHelpersToPug: exposeHelpersToPug, | ||
render: asyncHandler(render), | ||
}; | ||
|
||
// function exposeHelpersToPug(req, res, next) { | ||
// res.locals.getLocale = function getLocale() { | ||
// return req.user.lang; | ||
// }; | ||
// res.locals.__ = (key) => simpleI18n(key, req.user.lang); | ||
// res.locals._config = { | ||
// isDev: config.isDev, | ||
// host: config.host, | ||
// }; | ||
// res.locals.printJS = function (data) { | ||
// return JSON.stringify(data, null, ' '); | ||
// }; | ||
// next(); | ||
// } | ||
|
||
async function render(req, res) { | ||
res.render('maintenance-pages/maintenance-page'); | ||
res.render('maintenance-page'); | ||
} |