feat: add feed auto-discovery to blog add form

- Add feed-discovery.js utility that discovers RSS/Atom/JSON feeds from website URLs
- Add /api/discover endpoint for frontend feed discovery
- Update blog edit form with discovery UI (enter website URL, discover feeds)
- Auto-populate feedUrl, title, and siteUrl from discovery results
- Handle multiple feed options (let user choose)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ricardo
2026-02-07 15:37:23 +01:00
parent d45d183024
commit 4a53f74bbc
6 changed files with 428 additions and 1 deletions

View File

@@ -86,6 +86,9 @@ export default class BlogrollEndpoint {
protectedRouter.post("/blogs/:id/delete", blogsController.remove);
protectedRouter.post("/blogs/:id/refresh", blogsController.refresh);
// Feed discovery (protected to prevent abuse)
protectedRouter.get("/api/discover", apiController.discover);
return protectedRouter;
}