mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-05 02:36:52 +00:00
Merge pull request #255 from sharelatex/ta-analytics-proxy-public
Run analytics proxy on public API router
This commit is contained in:
commit
47414834c8
2 changed files with 3 additions and 3 deletions
|
@ -3,8 +3,8 @@ AnalyticsController = require('./AnalyticsController')
|
|||
AnalyticsProxy = require('./AnalyticsProxy')
|
||||
|
||||
module.exports =
|
||||
apply: (webRouter, privateApiRouter) ->
|
||||
apply: (webRouter, privateApiRouter, publicApiRouter) ->
|
||||
webRouter.post '/event/:event', AnalyticsController.recordEvent
|
||||
privateApiRouter.use '/analytics/graphs',
|
||||
publicApiRouter.use '/analytics/graphs',
|
||||
AuthenticationController.httpAuth,
|
||||
AnalyticsProxy.call('/graphs')
|
||||
|
|
|
@ -76,7 +76,7 @@ module.exports = class Router
|
|||
StaticPagesRouter.apply(webRouter, privateApiRouter)
|
||||
RealTimeProxyRouter.apply(webRouter, privateApiRouter)
|
||||
ContactRouter.apply(webRouter, privateApiRouter)
|
||||
AnalyticsRouter.apply(webRouter, privateApiRouter)
|
||||
AnalyticsRouter.apply(webRouter, privateApiRouter, publicApiRouter)
|
||||
|
||||
Modules.applyRouter(webRouter, privateApiRouter, publicApiRouter)
|
||||
|
||||
|
|
Loading…
Reference in a new issue