mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 09:35:36 +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
|
|
@ -1,9 +1,9 @@
|
|||
import { z } from 'zod';
|
||||
import { getQueryFilters, parseRequest } from '@/lib/request';
|
||||
import { unauthorized, json } from '@/lib/response';
|
||||
import { json, unauthorized } from '@/lib/response';
|
||||
import { filterParams, timezoneParam } from '@/lib/schema';
|
||||
import { canViewWebsite } from '@/permissions';
|
||||
import { filterParams, pagingParams, timezoneParam } from '@/lib/schema';
|
||||
import { getWeeklyTraffic } from '@/queries/sql';
|
||||
import { z } from 'zod';
|
||||
|
||||
export async function GET(
|
||||
request: Request,
|
||||
|
|
@ -14,7 +14,6 @@ export async function GET(
|
|||
endAt: z.coerce.number().int(),
|
||||
timezone: timezoneParam,
|
||||
...filterParams,
|
||||
...pagingParams,
|
||||
});
|
||||
|
||||
const { auth, query, error } = await parseRequest(request, schema);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue