overleaf/services/web/app/coffee/Features/Templates/TemplatesMiddlewear.coffee
2018-05-31 11:12:31 +01:00

9 lines
223 B
CoffeeScript

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