From 38161e67aec37caee95c59899245521684c3a5b2 Mon Sep 17 00:00:00 2001 From: "seonkyu.kim" Date: Tue, 20 Aug 2024 13:29:04 +0900 Subject: [PATCH] =?UTF-8?q?[=F0=9F=91=B7]=20=EB=AC=B8=EC=84=9C=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 4 ++-- package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 275ce84..ed90498 100755 --- a/index.js +++ b/index.js @@ -6,7 +6,7 @@ import bodyParser from 'body-parser'; // import swaggerUi from 'swagger-ui-express'; import path from 'path'; import { fileURLToPath } from 'url'; -// import cookieParser from 'cookie-parser'; +import cookieParser from 'cookie-parser'; import cors from 'cors'; import session from 'express-session'; // express-session 추가 @@ -24,7 +24,7 @@ const app = express(); app.use(cors()); app.use(bodyParser.json()); // For parsing application/json -// app.use(cookieParser()); // For parsing cookies +app.use(cookieParser()); // For parsing cookies app.use(express.static(path.join(__dirname, 'Front'))); // Serve static files from Pront directory // Swagger setup diff --git a/package.json b/package.json index ce46d67..169ee83 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "license": "ISC", "dependencies": { "express": "^4.19.2", + "mysql2": "^3.11.0", "cookie-parser": "^1.4.6", "body-parser": "^1.19.2", "express-session": "^1.17.3",