mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 08:37:13 +01:00
Pixel/links development. New validations folder. More refactoring.
This commit is contained in:
parent
88639dfe83
commit
247e14646b
136 changed files with 1395 additions and 516 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { canViewWebsite } from '@/lib/auth';
|
||||
import { canViewWebsite } from '@/validations';
|
||||
import { json, unauthorized } from '@/lib/response';
|
||||
import { getActiveVisitors } from '@/queries';
|
||||
import { parseRequest } from '@/lib/request';
|
||||
|
|
@ -19,7 +19,7 @@ export async function GET(
|
|||
return unauthorized();
|
||||
}
|
||||
|
||||
const result = await getActiveVisitors(websiteId);
|
||||
const visitors = await getActiveVisitors(websiteId);
|
||||
|
||||
return json(result);
|
||||
return json(visitors);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue