- Added a new health check endpoint to the public router in index.ts, returning a simple status response. - Updated update-docker-env.sh to include the MinIO Dashboard URL in the environment configuration and output messages.
13 lines
439 B
TypeScript
13 lines
439 B
TypeScript
import express from "express";
|
|
import ClientsController from "../../controllers/clients-controller";
|
|
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;
|