From ae69692048a877e025bcd00336a85a3b94c29b3a Mon Sep 17 00:00:00 2001 From: John Kirathe Date: Wed, 4 Sep 2024 23:37:33 +0300 Subject: [PATCH] added README.md --- netlify/functions/api.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/netlify/functions/api.js b/netlify/functions/api.js index 84afc0d..8380702 100644 --- a/netlify/functions/api.js +++ b/netlify/functions/api.js @@ -135,14 +135,14 @@ const api = express(); const router = Router(); api.use(express.json()); -/*api.use(morgan('combined', { +api.use(morgan('combined', { stream: { write: (message) => { // io.emit('log', message.trim()); } } -})); // Log all requests*/ -api.use(morgan('combined')); // Log all requests +})); // Log all requests +// api.use(morgan('combined')); // Log all requests api.use(cors()); // Enable CORS for all routes const users = [