mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 14:40:37 -05:00
14 lines
532 B
CoffeeScript
14 lines
532 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')
|