Loading…
/glossary is the editorial home of the public Matters AI glossary: write and
publish term definitions, organise them into categories, review revision history,
and inspect view analytics. It has the finest-grained permission set of the
content modules, with separate clearance for viewing, creating, editing,
publishing, archiving, and analytics.
| Route | Purpose | Guard |
|---|---|---|
/glossary | Term list (GlossaryAdminClient) | org:glossary:view (page.tsx + layout.tsx) |
/glossary/new | Create form | org:glossary:create |
/glossary/[id] | Edit one term | org:glossary:edit |
/glossary/[id]/revisions | Revision history for a term | org:glossary:view |
/glossary/categories | Category taxonomy (read-only list) | org:glossary:view |
/glossary/analytics | View-count dashboards | org:glossary:analytics_view |
Entry point:
page.tsx
and
layout.tsx
both enforce requirePermission("org:glossary:view"); each sub-view narrows to its
own permission above.
| Route | Purpose | Clearance |
|---|---|---|
/api/glossary/admin | List / create terms | org:glossary:view / org:glossary:create |
/api/glossary/admin/[id] | Update / delete / publish / archive one term | org:glossary:edit / delete / publish / archive |
/api/glossary/admin/[id]/revisions | Revision history | org:glossary:view |
/api/glossary/admin/categories | Category CRUD | view for reads, edit for writes |
/api/glossary/admin/analytics | Aggregated view counts | org:glossary:analytics_view |
Backed by MongoDB glossary_* collections, with Upstash Redis aggregating
view counts; rollup routes exist under /api/glossary/cron/* but are not on a
registered schedule.
org:glossary:publish,
org:glossary:archive) — an editor who can draft cannot necessarily ship.Related: Content Studio · RBAC