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 }))