Commit f7c3f7a
feat(global): add public API endpoint for navigation data
Expose primaryNav, footerLinks, and socialMediaLinks via a read-only
REST endpoint at GET /api/v1/@apostrophecms/global/nav. This allows
the Next.js marketing app to consume navigation data without
authentication. Relationship fields (_page) are automatically resolved
by Apostrophe's middleware before the handler runs.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent ebb62e0 commit f7c3f7a
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
136 | 150 | | |
0 commit comments