Add healthcheck endpoint
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user