mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-18 18:52:35 -05:00
10 lines
439 B
CoffeeScript
10 lines
439 B
CoffeeScript
AuthenticationController = require './../Authentication/AuthenticationController'
|
|
AnalyticsController = require('./AnalyticsController')
|
|
AnalyticsProxy = require('./AnalyticsProxy')
|
|
|
|
module.exports =
|
|
apply: (webRouter, privateApiRouter, publicApiRouter) ->
|
|
webRouter.post '/event/:event', AnalyticsController.recordEvent
|
|
publicApiRouter.use '/analytics/graphs',
|
|
AuthenticationController.httpAuth,
|
|
AnalyticsProxy.call('/graphs')
|