2017-12-21 13:51:52 +00:00
|
|
|
AuthenticationController = require './../Authentication/AuthenticationController'
|
2015-06-30 13:38:32 +00:00
|
|
|
AnalyticsController = require('./AnalyticsController')
|
2017-12-21 13:51:52 +00:00
|
|
|
AnalyticsProxy = require('./AnalyticsProxy')
|
2015-06-30 13:38:32 +00:00
|
|
|
|
|
|
|
module.exports =
|
2018-01-11 07:34:24 +00:00
|
|
|
apply: (webRouter, privateApiRouter, publicApiRouter) ->
|
2015-06-30 13:38:32 +00:00
|
|
|
webRouter.post '/event/:event', AnalyticsController.recordEvent
|
2018-01-22 16:20:08 +00:00
|
|
|
|
|
|
|
webRouter.put '/editingSession/:projectId',
|
|
|
|
AnalyticsController.updateEditingSession
|
|
|
|
|
2018-01-11 07:34:24 +00:00
|
|
|
publicApiRouter.use '/analytics/graphs',
|
2017-12-21 13:51:52 +00:00
|
|
|
AuthenticationController.httpAuth,
|
|
|
|
AnalyticsProxy.call('/graphs')
|
2018-03-06 16:21:28 +00:00
|
|
|
|
|
|
|
publicApiRouter.use '/analytics/recentTeamActivity',
|
|
|
|
AuthenticationController.httpAuth,
|
|
|
|
AnalyticsProxy.call('/recentTeamActivity')
|
2018-03-20 22:32:45 +00:00
|
|
|
|
|
|
|
publicApiRouter.use '/analytics/recentV1TemplateIdsActivity',
|
|
|
|
AuthenticationController.httpAuth,
|
|
|
|
AnalyticsProxy.call('/recentV1TemplateIdsActivity')
|
2018-03-21 10:32:04 +00:00
|
|
|
|
2018-03-15 09:48:48 +00:00
|
|
|
publicApiRouter.use '/analytics/uniExternalCollaboration',
|
|
|
|
AuthenticationController.httpAuth,
|
2018-03-21 10:32:04 +00:00
|
|
|
AnalyticsProxy.call('/uniExternalCollaboration')
|