summary refs log tree commit diff
path: root/api/package.json
diff options
context:
space:
mode:
authorThe Arcane Brony <myrainbowdash949@gmail.com>2021-09-18 16:13:15 +0000
committerThe Arcane Brony <myrainbowdash949@gmail.com>2021-09-18 18:13:15 +0200
commitc3fca1c02fb79a4f2daf57469fb42f12224f65fe (patch)
treeb9f46a810e0481c48919305fc5522c29deda6338 /api/package.json
parentMerge pull request #374 from TheArcaneBrony/dummy-connections-endpoint (diff)
downloadserver-c3fca1c02fb79a4f2daf57469fb42f12224f65fe.tar.xz
Add request logging (with env var: log-requests)
Request logging is enabled when the log-request environment variable is set.
Diffstat (limited to 'api/package.json')
-rw-r--r--api/package.json2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/package.json b/api/package.json
index ad959e57..98b15787 100644
--- a/api/package.json
+++ b/api/package.json
@@ -62,6 +62,7 @@
 	},
 	"dependencies": {
 		"@fosscord/util": "file:../util",
+		"@types/morgan": "^1.9.3",
 		"ajv": "8.6.2",
 		"ajv-formats": "^2.1.1",
 		"amqplib": "^0.8.0",
@@ -85,6 +86,7 @@
 		"mongoose": "^5.12.3",
 		"mongoose-autopopulate": "^0.12.3",
 		"mongoose-long": "^0.3.2",
+		"morgan": "^1.10.0",
 		"multer": "^1.4.2",
 		"node-fetch": "^2.6.1",
 		"patch-package": "^6.4.7",