mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
10 lines
273 B
JavaScript
10 lines
273 B
JavaScript
|
function updateLocalTemplateData(req, res, next) {
|
||
|
// Pass 'secure' flag to the view engine
|
||
|
// so that templates can choose to render https or http 'url', see url utility
|
||
|
res.locals.secure = req.secure;
|
||
|
|
||
|
next();
|
||
|
}
|
||
|
|
||
|
module.exports = updateLocalTemplateData;
|