Files
dnswatcher/internal/server/routes.go
clawbot 83643f84ab
All checks were successful
check / check (push) Successful in 46s
feat: implement GET /api/v1/domains and /api/v1/hostnames endpoints
Implement the two API endpoints documented in the README that were
previously returning 404:

- GET /api/v1/domains: Returns configured domains with their
  discovered nameservers, last check time, and status (ok/pending).

- GET /api/v1/hostnames: Returns configured hostnames with
  per-nameserver DNS records, status, and last check time.

Both endpoints read from the existing state store and config,
requiring no new dependencies. Nameserver results in the hostnames
endpoint are sorted for deterministic output.

Closes #67
2026-03-01 16:07:07 -08:00

1.1 KiB