From f9c61444b481bf44a140d9ac2a8aa1ff4ca6001a Mon Sep 17 00:00:00 2001 From: hippoz Date: Fri, 2 Oct 2020 23:18:53 +0300 Subject: [PATCH] add server listening message and remove unnecessary package --- index.js | 4 +++- package.json | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8bfb5d6..e1e6116 100644 --- a/index.js +++ b/index.js @@ -101,4 +101,6 @@ app.post('/api/upload', (req, res) => { }); }); -app.listen(config.server.port); \ No newline at end of file +app.listen(config.server.port, () => { + console.log(`Started server on port ${config.server.port}`); +}); \ No newline at end of file diff --git a/package.json b/package.json index ec8dbf1..fd00f51 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,6 @@ "author": "", "license": "ISC", "dependencies": { - "cors": "^2.8.5", "ejs": "^3.1.5", "express": "^4.17.1", "express-fileupload": "^1.2.0",