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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user