From 5b1a528748720882b5f3cc6d69c7e8c54f8758d0 Mon Sep 17 00:00:00 2001 From: RHM Date: Thu, 11 Sep 2025 15:43:21 +0200 Subject: [PATCH] oops --- backend/src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/index.js b/backend/src/index.js index 112a5c9..e44aebe 100644 --- a/backend/src/index.js +++ b/backend/src/index.js @@ -11,6 +11,8 @@ const __filename = fileURLToPath(import.meta.url); const __dirname = path.join(path.dirname(__filename), ".."); // going back a dir cuz code is in src/ const app = express(); +initDB(); + app.use(cors()); app.use(express.json()) app.use(express.urlencoded({ extended: true }))