Change delete room API to DELETE
(#151)
This commit is contained in:
parent
509a45cba4
commit
9f16e5c6ba
@ -67,9 +67,8 @@ const resourceMap = {
|
|||||||
return json.total_rooms;
|
return json.total_rooms;
|
||||||
},
|
},
|
||||||
delete: params => ({
|
delete: params => ({
|
||||||
endpoint: `/_synapse/admin/v1/rooms/${params.id}/delete`,
|
endpoint: `/_synapse/admin/v1/rooms/${params.id}`,
|
||||||
body: { block: false },
|
body: { block: false },
|
||||||
method: "POST",
|
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
reports: {
|
reports: {
|
||||||
|
Loading…
Reference in New Issue
Block a user