mirror of
https://github.com/R0m1k3/FlowReader.git
synced 2026-10-14 10:49:47 +02:00
fix: add immediate feed fetch, refresh api and frontend update button
This commit is contained in:
1 parent
1263a12ca2
commit
007aec2094
4 files changed
+75
-9
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user