mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 17:45:38 +01:00
clean up events/event-data endpoints
This commit is contained in:
parent
a7a7293d73
commit
f23d5694ec
10 changed files with 59 additions and 38 deletions
|
|
@ -27,12 +27,10 @@ export async function GET(
|
|||
return unauthorized();
|
||||
}
|
||||
|
||||
const { event } = query;
|
||||
const filters = await getQueryFilters(query, websiteId);
|
||||
|
||||
const data = await getEventDataEvents(websiteId, {
|
||||
...filters,
|
||||
event,
|
||||
});
|
||||
|
||||
return json(data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue