From 2268fc06c50f799a54329bbbf3f2271e52969115 Mon Sep 17 00:00:00 2001 From: soufiane Date: Mon, 3 Nov 2025 22:29:45 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20index.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" }); });