Przeglądaj źródła

[misc] fix express deprecations

Jakob Ackermann 6 lat temu
rodzic
commit
c4a60bb4e9
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      services/spelling/app.js

+ 1 - 1
services/spelling/app.js

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