overleaf/services/web/app/coffee/Features/Templates/TemplatesMiddlewear.coffee
2014-02-12 10:23:40 +00:00

7 lines
143 B
CoffeeScript

module.exports =
saveTemplateDataInSession: (req, res, next)->
if req.query.templateName
req.session.templateData = req.query
next()