mirror of
https://github.com/R0m1k3/FlowReader.git
synced 2026-10-14 02:39:33 +02:00
feat(feeds): implement rename feed functionality and ui
This commit is contained in:
1 parent
6e4915b895
commit
fd03cdfd34
5 files changed
+119
No files matched your search
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user