Add view of reported events (#84)

This commit is contained in:
Dirk Klimpel
2021-01-04 09:14:33 +01:00
committed by GitHub
parent 1706cd3c9d
commit 2f96951c19
6 changed files with 204 additions and 2 deletions

View File

@@ -72,6 +72,15 @@ const resourceMap = {
method: "POST",
}),
},
reports: {
path: "/_synapse/admin/v1/event_reports",
map: er => ({
...er,
id: er.id,
}),
data: "event_reports",
total: json => json.total,
},
devices: {
map: d => ({
...d,