mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 06:07:17 +01:00
add regions to useFormat
This commit is contained in:
parent
3f6fb4654b
commit
e9ae4903d4
2 changed files with 10 additions and 6 deletions
|
|
@ -6,7 +6,7 @@ import { badRequest, methodNotAllowed, ok, unauthorized } from 'next-basics';
|
|||
import { EVENT_COLUMNS, FILTER_COLUMNS, SESSION_COLUMNS } from 'lib/constants';
|
||||
import { getValues } from 'queries';
|
||||
|
||||
export interface WebsiteResetRequestQuery {
|
||||
export interface ValuesRequestQuery {
|
||||
id: string;
|
||||
}
|
||||
|
||||
|
|
@ -17,10 +17,7 @@ const schema = {
|
|||
}),
|
||||
};
|
||||
|
||||
export default async (
|
||||
req: NextApiRequestQueryBody<WebsiteResetRequestQuery>,
|
||||
res: NextApiResponse,
|
||||
) => {
|
||||
export default async (req: NextApiRequestQueryBody<ValuesRequestQuery>, res: NextApiResponse) => {
|
||||
await useCors(req, res);
|
||||
await useAuth(req, res);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue