From ba2c0116a382564d0c2519a180d2c656c1b91b29 Mon Sep 17 00:00:00 2001 From: 65160381 <65160381@go.buu.ac.th> Date: Tue, 25 Mar 2025 02:57:36 +0700 Subject: [PATCH] 9.1 --- app.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app.js b/app.js index 0353af6..f92b3f6 100644 --- a/app.js +++ b/app.js @@ -242,11 +242,6 @@ app.get('/api/products', (req, res) => { }); }); - -app.use(express.json()); // สำหรับการ parse ข้อมูลแบบ JSON -app.use(express.urlencoded({ extended: true })); // สำหรับการ parse ข้อมูลแบบ URL-encoded - - app.post('/logout', (req, res) => { req.session.destroy(err => { if (err) { -- GitLab