mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
7 lines
263 B
CoffeeScript
7 lines
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
|