overleaf/services/web/app/coffee/Features/Templates/TemplatesMiddlewear.coffee

10 lines
223 B
CoffeeScript
Raw Normal View History

2018-05-31 06:12:31 -04:00
settings = require("settings-sharelatex")
logger = require("logger-sharelatex")
module.exports =
saveTemplateDataInSession: (req, res, next)->
if req.query.templateName
req.session.templateData = req.query
next()