fix health check

This commit is contained in:
philipredstone 2025-04-16 10:18:00 +02:00
parent 6ca54dfe9d
commit 88d0c58a35
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ EXPOSE 80
# Health check to verify the application is running
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
CMD curl -f http://localhost:$PORT/health || exit 1
CMD curl -f http://localhost:$PORT/api/health || exit 1
# Start the application
CMD ["bun", "run", "start"]

View File

@ -52,7 +52,7 @@ app.use('/api/networks', peopleRoutes);
app.use('/api/networks', relationshipRoutes);
// Health check
app.get('/health', (req, res) => {
app.get('/api/health', (req, res) => {
res.send('OK');
});