fix: mount blogroll at /rssapi and add /api/feeds alias

The /news/ page fetches /rssapi/api/items, /rssapi/api/feeds and
/rssapi/api/status. The blogroll endpoint was mounted at /blogrollapi,
so all three requests returned a 404 HTML page — causing the
"Unexpected token '<'" JSON parse error.

- Change blogroll mountPath from /blogrollapi to /rssapi
- Add patch-endpoint-blogroll-feeds-alias.mjs: injects a /api/feeds
  route alias pointing to listBlogs (page expects /feeds, endpoint
  only had /blogs)
- Wire new patch into postinstall and serve scripts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Sven
2026-03-13 18:54:24 +01:00
parent bf1991d82c
commit 64e5f99526
4 changed files with 81 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
AP_LOG_LEVEL=error
# Optional Podroll endpoint settings
# Default mount path in indiekit.config.mjs is /podrollapi
PODROLL_MOUNT_PATH=/podrollapi