diff --git a/backend/src/index.js b/backend/src/index.js index 649e1dd..3760be4 100644 --- a/backend/src/index.js +++ b/backend/src/index.js @@ -26,6 +26,7 @@ app.use(cors()); app.use(express.json()); // ─── Public routes (no auth required) ──────────────────────────────────────── +app.get('/api/ping', (req, res) => res.json({ ok: true })); app.use('/api/auth', authRouter); // ─── Protected routes (JWT required) ───────────────────────────────────────── diff --git a/docker-compose.yml b/docker-compose.yml index 374afc2..b1372ce 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,7 @@ services: networks: - sloth-net healthcheck: - test: ["CMD", "wget", "-qO-", "http://localhost:3001/api/providers"] + test: ["CMD", "wget", "-qO-", "http://localhost:3001/api/ping"] interval: 30s timeout: 5s retries: 3