Merge pull request #92 from chamikaJ/fix/docker-compose-fix
Enhance backend API with health check endpoint and update environment…
This commit is contained in:
@@ -21,6 +21,7 @@ fi
|
||||
|
||||
# Frontend URLs
|
||||
FRONTEND_URL="${HTTP_PREFIX}${HOSTNAME}:5000"
|
||||
MINIO_DASHBOARD_URL="${HTTP_PREFIX}${HOSTNAME}:9001"
|
||||
|
||||
# Create or overwrite frontend .env.development file
|
||||
mkdir -p worklenz-frontend
|
||||
@@ -128,4 +129,5 @@ echo
|
||||
echo "Frontend URL: ${FRONTEND_URL}"
|
||||
echo "API URL: ${HTTP_PREFIX}${HOSTNAME}:3000"
|
||||
echo "Socket URL: ${WS_PREFIX}${HOSTNAME}:3000"
|
||||
echo "MinIO Dashboard URL: ${MINIO_DASHBOARD_URL}"
|
||||
echo "CORS is configured to allow requests from: ${FRONTEND_URL}"
|
||||
@@ -5,5 +5,8 @@ import safeControllerFunction from "../../shared/safe-controller-function";
|
||||
const public_router = express.Router();
|
||||
|
||||
public_router.post("/new-subscriber", safeControllerFunction(ClientsController.addSubscriber));
|
||||
public_router.get("/health", (req, res) => {
|
||||
res.status(200).json({ status: "ok" });
|
||||
});
|
||||
|
||||
export default public_router;
|
||||
|
||||
Reference in New Issue
Block a user