Add healthcheck endpoint

This commit is contained in:
Codex
2026-07-01 12:22:43 +03:00
parent 550061c4da
commit 7f837944be

View File

@@ -16,7 +16,7 @@ export function createApp(options: AppOptions) {
const app = express();
const { ethereum, db, amqp, logger } = options;
app.get('/health', async (_req, res) => {
app.get(['/health', '/healthcheck'], async (_req, res) => {
const hotWalletAddress = ethereum.getHotWalletAddress();
const [blockNumber, ethBalanceWei, usdtBalanceUnits, postgres] = await Promise.allSettled([
ethereum.getCurrentBlockNumber(),