overleaf/services/web/app/coffee/Features/Analytics/AnalyticsController.coffee
Shane Kilkelly 6aef092dce fix typo
2016-09-06 09:29:58 +01:00

7 lines
264 B
CoffeeScript

AnalyticsManager = require "./AnalyticsManager"
module.exports = AnalyticsController =
recordEvent: (req, res, next) ->
AnalyticsManager.recordEvent req.session?.user?._id, req.params.event, req.body, (error) ->
return next(error) if error?
res.send 204