Every route is a constant in ApiPaths
Build / Build (push) Successful in 35s

All 384 routes, the Mastodon API, the client API and the frozen federation
paths, are read from one class with one nested class per controller. Their
values are unchanged, checked one by one against the old literals; decePubClient
keeps its own APIs class.

Checked against GoToSocial in the pasture: 64 passed, 0 failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W4YtEJrgxG12Pc39Fai8Bd
This commit is contained in:
thepraandClaude Opus 5.5 committed 2026-11-10 01:59:20 +01:00
1 parent 0f73f69239
commit 739a1603ca
47 files changed
+952 -373

No files matched your search

+4 -2
View File
@@ -1095,8 +1095,10 @@ same rules. Applied to PrivaPub:
(HR0009).
- Numbers shown to a reader go through formatting helpers (HR0011). The ISO week key (`InstanceDescriber.Week`)
and the six-digit email code (`EmailVerificationJob.NewCode`) are identifiers, and say so.
- **Still open:** route constants shared with decePubClient (HR0305; the frozen literals above stay their values)
and source-generated JSON contexts (HR0306).
- **Routes** are constants in `PrivaPub/ApiPaths.cs` (HR0305): one nested class per controller, `GET_`/`POST_`/…,
`_M_` when the template has parameters, `Prefix` for a controller's own `[Route]`. The values are the frozen routes
above, never changed by a rename. decePubClient keeps its own `APIs` class (owner, 2026-11-10: kept separate).
- **Still open:** source-generated JSON contexts (HR0306).
## Verifying