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

8 lines
143 B
CoffeeScript
Raw Normal View History

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