mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
13da4b6125
Remove unused v1 analytics proxy endpoints GitOrigin-RevId: 7563a6592645bd4693e7a6bc209862435302893c
23 lines
665 B
JavaScript
23 lines
665 B
JavaScript
const AuthenticationController = require('./../Authentication/AuthenticationController')
|
|
const AnalyticsController = require('./AnalyticsController')
|
|
const AnalyticsProxy = require('./AnalyticsProxy')
|
|
|
|
module.exports = {
|
|
apply(webRouter, privateApiRouter, publicApiRouter) {
|
|
webRouter.post(
|
|
'/event/:event([a-z0-9-_]+)',
|
|
AnalyticsController.recordEvent
|
|
)
|
|
|
|
webRouter.put(
|
|
'/editingSession/:projectId',
|
|
AnalyticsController.updateEditingSession
|
|
)
|
|
|
|
publicApiRouter.use(
|
|
'/analytics/uniExternalCollaboration',
|
|
AuthenticationController.httpAuth,
|
|
AnalyticsProxy.call('/uniExternalCollaboration')
|
|
)
|
|
}
|
|
}
|