fix: add immediate feed fetch, refresh api and frontend update button

This commit is contained in:
Michael committed 2026-02-04 16:40:04 +01:00
1 parent 1263a12ca2
commit 007aec2094
4 files changed
+75 -9

No files matched your search

+8
View File
@@ -52,6 +52,14 @@ export const feedsApi = {
await handleResponse(response);
},
async refresh(): Promise<{ message: string }> {
const response = await fetch(`${API_BASE}/feeds/refresh`, {
method: 'POST',
credentials: 'include',
});
return handleResponse(response);
},
async importOPML(file: File): Promise<{ imported: number; skipped: number; errors?: string[] }> {
const formData = new FormData();
formData.append('file', file);