diff --git a/app.js b/app.js index 0353af6265c957f8262740e05c3bbc20e5f5559c..f92b3f6c8dacfe04448137b06ed48df0ae9fa06f 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) {