overleaf/services/web/app/coffee/Features/Templates/TemplatesMiddlewear
2018-05-31 13:26:54 +01:00

8 lines
222 B
Text

settings = require("settings-sharelatex")
logger = require("logger-sharelatex")
module.exports =
saveTemplateDataInSession: (req, res, next)->
if req.query.templateName
req.session.templateData = req.query
next()