use express-promise-router to prevent requests timing out on unhandled promise rejections

This commit is contained in:
DetachHead
2021-07-03 14:00:51 +10:00
parent f1d22c6ca4
commit 20335e3f27
3 changed files with 120 additions and 62 deletions

View File

@@ -18,6 +18,7 @@
"better-sqlite3": "^7.1.5",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"express-promise-router": "^4.1.0",
"express-rate-limit": "^5.1.3",
"http": "0.0.0",
"iso8601-duration": "^1.2.0",