mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 15:45:03 -05:00
26 lines
No EOL
981 B
CoffeeScript
26 lines
No EOL
981 B
CoffeeScript
AuthenticationController = require './../Authentication/AuthenticationController'
|
|
AnalyticsController = require('./AnalyticsController')
|
|
AnalyticsProxy = require('./AnalyticsProxy')
|
|
|
|
module.exports =
|
|
apply: (webRouter, privateApiRouter, publicApiRouter) ->
|
|
webRouter.post '/event/:event', AnalyticsController.recordEvent
|
|
|
|
webRouter.put '/editingSession/:projectId',
|
|
AnalyticsController.updateEditingSession
|
|
|
|
publicApiRouter.use '/analytics/graphs',
|
|
AuthenticationController.httpAuth,
|
|
AnalyticsProxy.call('/graphs')
|
|
|
|
publicApiRouter.use '/analytics/recentTeamActivity',
|
|
AuthenticationController.httpAuth,
|
|
AnalyticsProxy.call('/recentTeamActivity')
|
|
|
|
publicApiRouter.use '/analytics/recentV1TemplateIdsActivity',
|
|
AuthenticationController.httpAuth,
|
|
AnalyticsProxy.call('/recentV1TemplateIdsActivity')
|
|
|
|
publicApiRouter.use '/analytics/uniExternalCollaboration',
|
|
AuthenticationController.httpAuth,
|
|
AnalyticsProxy.call('/uniExternalCollaboration') |