mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
clean-up session api endpoints and queries
This commit is contained in:
parent
f98e683979
commit
533a42eb2e
10 changed files with 64 additions and 43 deletions
|
|
@ -3,6 +3,7 @@ import { getQueryFilters, parseRequest } from '@/lib/request';
|
|||
import { json, unauthorized } from '@/lib/response';
|
||||
import { getSessionDataValues } from '@/queries/sql';
|
||||
import { z } from 'zod';
|
||||
import { filterParams } from '@/lib/schema';
|
||||
|
||||
export async function GET(
|
||||
request: Request,
|
||||
|
|
@ -12,6 +13,7 @@ export async function GET(
|
|||
startAt: z.coerce.number().int(),
|
||||
endAt: z.coerce.number().int(),
|
||||
propertyName: z.string().optional(),
|
||||
...filterParams,
|
||||
});
|
||||
|
||||
const { auth, query, error } = await parseRequest(request, schema);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue