waf: list its own endpoints on a chi router in routes.go (closes #426) #459

Open
clawbot wants to merge 2 commits from issue-426-chi-routes into next
pull from: issue-426-chi-routes
2 Commits
Author SHA1 Message Date
clawbot b7e7557047 waf: test the request_bytes of a ban added through the endpoint
check / check (push) Waiting to run
No test read the request_bytes of an own endpoint's log line, so
removing the counting in logOwnEndpoint went unnoticed. The test checks
that a ban to add is logged with its body's bytes, and that the health
endpoint, which reads no body, logs 0.

Model: opus-5-5
2026-11-19 17:07:16 +00:00
clawbot e84156ef04 waf: list its own endpoints on a chi router in routes.go (closes #426)
check / check (push) Waiting to run
routes.go lists every own endpoint. One middleware checks a token and
another writes the log line. answerOwnEndpoint, answerAdmin and
endpoint() are gone; the handlers return http.HandlerFunc. The router
matches the decoded path, as the old code did.

Model: opus-5-5
2026-11-19 16:40:27 +00:00