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

8 lines
143 B
CoffeeScript
Raw Normal View History

2014-02-12 10:23:40 +00:00
module.exports =
saveTemplateDataInSession: (req, res, next)->
if req.query.templateName
req.session.templateData = req.query
next()