docs(website): record the PR 3 admin router split (posts, uploads, wiki, pages) #56
Reference in New Issue
Block a user
No description provided.
Delete Branch "docs/admin-router-split-3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & why
Records PR 3 of the admin router split — RunicGateway/website#104 (
posts,uploads,wiki,pages; 31 routes extracted, 33 left inadmin.routes.js). Follows docs#53 (PR 1) and docs#54 (PR 2).website/API_V2_PLAN.md— adds a "PR 3 — as landed" section and ticks the sequencing list. Findings carried forward:admin.routes.jsis deleted by PR 4, one PR earlier than the sequencing list implied. PR 5 becomespublic/*+player/*+auth/*only.admin/imageUpload.js) — the multer config, becausePOST /posts/uploadandPOST /uploadsno longer live in the same file. Documented with the reason it must stay inadmin/:UPLOAD_DIRis__dirname-relative.POST /uploadskeeps itsAdmin · Postsswagger tag — retagging is a real OpenAPI diff, so it doesn't belong in a PR whose acceptance criterion is a byte-identical spec. Same call as PR 1's/shard/*tag mismatch./categoriesand/tagspaths must precede/:slug, and the manifest sorts its entries, so a reordering is invisible in all three gates. Verified instead by introspecting the built router stack. Any future PR moving/:slug-style routes needs the same explicit check — this is the most reusable finding in the section./admin/pages(CMS builder) vs/admin/shard/pages(in-game help queue) are unrelated capabilities that read alike — same trap as PR 2'sactivity/dashboard/bot-activitytrio.website/BACKEND_DESIGN.md— §2 folder tree gains the four routers plusimageUpload.js(marked as not-a-router) and the residual count drops 64 → 33; the "landed so far" note covers PR 3. §4's/adminpreamble now says the content capabilities add no gate beyondstaffOnly. The §4 URL table is unchanged, because no URL changed.PROJECT_TREE.mdis deliberately untouched — it's auto-generated by thesync-project-treeworkflow (website#98), which opens its own docs PR after the merge.How it was tested
Documentation only — no code. Verified against the merged state of website#104: route counts per prefix were read out of the generated
routes.manifest.jsonrather than counted by hand.Checklist
AI-assisted contributions (required)
This project requires disclosure of AI tool usage. Please pick one:
Claude Code (Opus 5). I have reviewed and understandevery change, and take responsibility for it. AI-authored commits are
marked with a
Co-Authored-By/Assisted-Bytrailer.License
(GNU GPL v3.0 or later), and I have the right to contribute it.