mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-11 23:20:47 +02:00
Merge pull request #2291 from overleaf/ta-events-validate
Validate Events with Regex GitOrigin-RevId: f0a57345862ce4daefaa9f01b851d446230ed46d
This commit is contained in:
committed by
sharelatex
parent
12dd42724c
commit
94707c08ea
@@ -4,7 +4,10 @@ const AnalyticsProxy = require('./AnalyticsProxy')
|
||||
|
||||
module.exports = {
|
||||
apply(webRouter, privateApiRouter, publicApiRouter) {
|
||||
webRouter.post('/event/:event', AnalyticsController.recordEvent)
|
||||
webRouter.post(
|
||||
'/event/:event([a-z0-9-_]+)',
|
||||
AnalyticsController.recordEvent
|
||||
)
|
||||
|
||||
webRouter.put(
|
||||
'/editingSession/:projectId',
|
||||
|
||||
Reference in New Issue
Block a user