memos/plugin/httpgetter
ayasy-el bc4ae02bcd feat(api): add link preview endpoint with metadata fallback
- add REST GET /api/v1/link:preview to return title/description/image

- resolve relative/protocol-relative image URLs; fallback to first <img> when og:image missing

- add first-image scraper and guard HTML meta fetch against 4xx/5xx responses

- register route in server startup; add LinkService proto stub for future gateway/grpc use (not yet wired)
2025-12-14 16:26:12 +07:00
..
first_image.go feat(api): add link preview endpoint with metadata fallback 2025-12-14 16:26:12 +07:00
html_meta.go feat(api): add link preview endpoint with metadata fallback 2025-12-14 16:26:12 +07:00
html_meta_test.go fix: golangci config 2025-04-02 22:47:34 +08:00
http_getter.go refactor: attachment service part2 2025-06-18 00:09:19 +08:00
image.go fix: golangci config 2025-04-02 22:47:34 +08:00
util.go chore: tweak package name 2024-05-06 07:18:54 +08:00