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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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,