bvandeusen
1cc7eb6cad
refactor(server/api): writeErr accepts error; migrate admin handlers (1/3)
...
Rewrite writeErr(w, err) to wrap *apierror.Error via apierror.From,
preserving the existing {"error": {"code", "message"}} wire envelope.
Add writeErrWithLog helper for 500-class errors that need an operator
log line. Migrate all 13 admin_*.go handler files (~76 call sites) to
the new signature; T3 will sweep the remaining api package.
The old 4-arg writeErr is removed, so non-admin call sites in
internal/api will not compile until T3 lands. This is by design — T2
and T3 are paired.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-07 19:48:25 -04:00
..
2026-05-06 13:08:45 -04:00
2026-05-07 19:48:25 -04:00
2026-05-06 10:08:58 -04:00
2026-05-07 19:48:25 -04:00
2026-05-07 07:59:40 -04:00
2026-05-07 19:48:25 -04:00
2026-05-06 13:55:35 -04:00
2026-05-07 19:48:25 -04:00
2026-05-07 12:01:16 -04:00
2026-05-07 19:48:25 -04:00
2026-04-29 17:44:54 -04:00
2026-05-02 00:09:13 -04:00
2026-04-30 20:19:39 -04:00
2026-04-30 20:19:39 -04:00
2026-04-29 17:56:25 -04:00
2026-05-02 13:04:38 -04:00
2026-05-06 22:59:23 -04:00
2026-05-07 19:48:25 -04:00
2026-05-04 20:13:31 -04:00
2026-05-07 19:48:25 -04:00
2026-05-07 12:43:44 -04:00
2026-05-07 19:48:25 -04:00
2026-05-06 12:59:53 -04:00
2026-05-07 19:48:25 -04:00
2026-05-07 12:17:14 -04:00
2026-05-07 19:48:25 -04:00
2026-05-07 12:49:30 -04:00
2026-05-07 12:49:30 -04:00
2026-05-07 12:49:30 -04:00
2026-05-07 11:56:19 -04:00
2026-05-07 11:56:19 -04:00
2026-05-07 12:49:30 -04:00
2026-05-07 12:49:30 -04:00
2026-05-07 12:49:30 -04:00
2026-04-20 22:32:12 -04:00
2026-04-21 23:02:20 -04:00
2026-05-04 17:41:16 -04:00
2026-05-07 19:48:25 -04:00
2026-05-07 19:48:25 -04:00
2026-04-26 00:12:06 -04:00
2026-04-26 00:12:06 -04:00
2026-05-01 17:58:59 -04:00
2026-05-01 17:58:59 -04:00
2026-05-01 18:00:59 -04:00
2026-05-01 18:00:59 -04:00
2026-04-28 09:27:06 -04:00
2026-05-07 18:05:30 -04:00
2026-05-01 18:10:04 -04:00
2026-04-29 17:35:45 -04:00
2026-04-29 17:35:45 -04:00
2026-04-27 11:22:35 -04:00
2026-04-27 11:22:35 -04:00
2026-04-28 09:27:06 -04:00
2026-04-28 09:27:06 -04:00
2026-05-04 07:05:49 -04:00
2026-05-04 05:52:17 -04:00
2026-05-07 12:38:48 -04:00
2026-05-07 12:38:48 -04:00
2026-05-07 12:38:48 -04:00
2026-05-07 12:38:48 -04:00
2026-05-04 18:13:13 -04:00
2026-05-04 18:13:13 -04:00
2026-04-29 11:55:06 -04:00
2026-05-07 12:38:48 -04:00
2026-05-07 12:38:48 -04:00
2026-04-20 22:11:02 -04:00
2026-05-04 15:21:24 -04:00
2026-05-04 14:46:28 -04:00
2026-05-07 08:39:26 -04:00
2026-05-07 08:39:26 -04:00
2026-05-07 10:37:12 -04:00
2026-05-07 10:37:12 -04:00
2026-05-04 09:29:37 -04:00
2026-05-07 08:14:13 -04:00
2026-04-30 20:19:39 -04:00
2026-04-30 20:19:39 -04:00
2026-04-29 08:47:31 -04:00
2026-04-29 08:47:31 -04:00
2026-05-07 18:46:01 -04:00
2026-05-07 18:46:01 -04:00
2026-04-21 08:29:28 -04:00
2026-04-30 20:09:04 -04:00
2026-05-01 06:23:08 -04:00
2026-05-01 06:23:08 -04:00
2026-05-04 17:41:16 -04:00