mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #2291 from overleaf/ta-events-validate
Validate Events with Regex GitOrigin-RevId: f0a57345862ce4daefaa9f01b851d446230ed46d
This commit is contained in:
parent
12dd42724c
commit
94707c08ea
1 changed files with 4 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue