overleaf/services/web/app/coffee/Features/Analytics/AnalyticsController.coffee

8 lines
264 B
CoffeeScript
Raw Normal View History

2016-09-06 08:29:58 +00:00
AnalyticsManager = require "./AnalyticsManager"
2016-08-10 15:42:56 +00:00
module.exports = AnalyticsController =
recordEvent: (req, res, next) ->
AnalyticsManager.recordEvent req.session?.user?._id, req.params.event, req.body, (error) ->
return next(error) if error?
2016-09-05 14:58:31 +00:00
res.send 204