From 5c2ed4eab9a5bb3d457bd27a67e2051f628c5385 Mon Sep 17 00:00:00 2001 From: AbhishekA7kumar Date: Sun, 17 Nov 2024 17:37:22 +0530 Subject: [PATCH] Update index.js --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 9f6e92b..3a25332 100644 --- a/index.js +++ b/index.js @@ -34,6 +34,7 @@ const auth = (req, res, next) => { next() }; +//server.use(auth); // API - Endpoint - Route server.get('/product/:id', auth, (req, res) => {