mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
10 lines
423 B
CoffeeScript
10 lines
423 B
CoffeeScript
AuthenticationController = require './../Authentication/AuthenticationController'
|
|
AnalyticsController = require('./AnalyticsController')
|
|
AnalyticsProxy = require('./AnalyticsProxy')
|
|
|
|
module.exports =
|
|
apply: (webRouter, privateApiRouter) ->
|
|
webRouter.post '/event/:event', AnalyticsController.recordEvent
|
|
privateApiRouter.use '/analytics/graphs',
|
|
AuthenticationController.httpAuth,
|
|
AnalyticsProxy.call('/graphs')
|