Skip to content

feat(admin): add GET /admin/network-health endpoint - #753

Open
Ferryx349 wants to merge 4 commits into
mainfrom
feat/admin-network-health-api
Open

feat(admin): add GET /admin/network-health endpoint#753
Ferryx349 wants to merge 4 commits into
mainfrom
feat/admin-network-health-api

Conversation

@Ferryx349

Copy link
Copy Markdown
Collaborator

Description

Adds GET /admin/network-health for authenticated admin clients.

Related Issue

Stacked on #741 and closes #697

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Non-functional change (docs, style, minor refactor)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my code changes.
  • I added a changeset, or this is docs-only and I added an empty changeset.
  • All new and existing tests passed.

After each probe run, sign and store NIP-66 relay discovery and monitor announcement events from the monitor identity, bootstrap kind 0/10002 on first run, and persist via the parameterized replaceable event path.

Fixes #696
Knex already parses jsonb event_tags as an array; JSON.parse on that value caused CI failures. Assert the d tag via the event_tags table instead.
@changeset-bot

changeset-bot Bot commented Sep 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d17c6d3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
nostream Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Ferryx349 Ferryx349 changed the title Feat/admin network health api feat(admin): add GET /admin/network-health endpoint (#697) Sep 3, 2026
@Ferryx349 Ferryx349 changed the title feat(admin): add GET /admin/network-health endpoint (#697) feat(admin): add GET /admin/network-health endpoint Sep 3, 2026
Comment thread src/routes/admin/index.ts
router.get(
'/network-health',
adminRateLimitMiddleware,
adminAuthMiddleware,
@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 71.497% (+0.1%) from 71.386% — feat/admin-network-health-api into main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(admin): add GET /admin/network-health endpoint

3 participants