feat(feeds): implement rename feed functionality and ui

This commit is contained in:
Antigravity Agent committed 2026-02-04 22:22:57 +01:00
1 parent 6e4915b895
commit fd03cdfd34
5 files changed
+119

No files matched your search

+10
View File
@@ -44,6 +44,16 @@ export const feedsApi = {
return handleResponse<Feed>(response);
},
async update(id: string, title: string): Promise<Feed> {
const response = await fetch(`${API_BASE}/feeds/${id}`, {
method: 'PATCH',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
body: JSON.stringify({ title }),
});
return handleResponse<Feed>(response);
},
async delete(id: string): Promise<void> {
const response = await fetch(`${API_BASE}/feeds/${id}`, {
method: 'DELETE',