Skip to content

Commit 1fff1ed

Browse files
Mihai - Alexandru ChindrișMihai - Alexandru Chindriș
authored andcommitted
Add debug status endpoint
1 parent 0f6e473 commit 1fff1ed

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

apps/webhook-receiver/src/server.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,19 @@ app.get("/health", (_req, res) => {
437437
res.json({ ok: true });
438438
});
439439

440+
app.get("/debug/status", (_req, res) => {
441+
res.json({
442+
ok: true,
443+
devMode,
444+
notifier,
445+
notifierFallback,
446+
matrixHomeserver,
447+
matrixRoomId: matrixRoomId || loadStoredRoomId(),
448+
hasMatrixToken: Boolean(matrixAccessToken),
449+
ntfyConfigured: Boolean(ntfyTopic),
450+
});
451+
});
452+
440453
app.listen(port, () => {
441454
console.log(`Inbox Sherpa webhook receiver listening on :${port}`);
442455
});

0 commit comments

Comments
 (0)