mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
12 lines
261 B
JavaScript
12 lines
261 B
JavaScript
|
import { getActiveVisitors } from 'lib/queries';
|
||
|
import { ok } from 'lib/response';
|
||
|
|
||
|
export default async (req, res) => {
|
||
|
const { id } = req.query;
|
||
|
const website_id = +id;
|
||
|
|
||
|
const result = await getActiveVisitors(website_id);
|
||
|
|
||
|
return ok(res, result);
|
||
|
};
|