diff --git a/index.js b/index.js index 022304be..6294d99c 100644 --- a/index.js +++ b/index.js @@ -9,6 +9,7 @@ import { pool } from "./db.js"; dotenv.config(); const app = express(); +// --- Middlewares globaux --- app.use( cors({ origin: ["http://localhost:3000", "https://dsp5-archi-o24a-15m-g3.fr"], @@ -29,7 +30,7 @@ app.get("/db-check", async (req, res) => { } }); -// --- Route santé --- +// --- Route de santé --- app.get("/health", (req, res) => { res.status(200).json({ status: "ok" }); });