Merge pull request #65 from overleaf/jpa-fix-express-deprecations

[misc] fix express deprecations
This commit is contained in:
Jakob Ackermann 2020-07-22 11:10:21 +02:00 committed by GitHub
commit 5037162f3d

View file

@ -26,7 +26,7 @@ const HealthCheckController = require('./app/js/HealthCheckController')
app.use(bodyParser.json({ limit: '2mb' }))
app.use(metrics.http.monitor(logger))
app.del('/user/:user_id', SpellingAPIController.deleteDic)
app.delete('/user/:user_id', SpellingAPIController.deleteDic)
app.get('/user/:user_id', SpellingAPIController.getDic)
app.post('/user/:user_id/check', SpellingAPIController.check)
app.post('/user/:user_id/learn', SpellingAPIController.learn)