overleaf/services/web/app/coffee/Features/Analytics/AnalyticsController.coffee
2016-08-10 16:42:56 +01:00

7 lines
No EOL
263 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