mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +01:00
Fixed team users validation.
This commit is contained in:
parent
194472b104
commit
46a57183a1
2 changed files with 6 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { useCors, useValidate } from 'lib/middleware';
|
||||
import { useAuth, useCors, useValidate } from 'lib/middleware';
|
||||
import { NextApiRequestQueryBody } from 'lib/types';
|
||||
import { pageInfo } from 'lib/schema';
|
||||
import { NextApiResponse } from 'next';
|
||||
|
|
@ -14,6 +14,7 @@ const schema = {
|
|||
|
||||
export default async (req: NextApiRequestQueryBody, res: NextApiResponse) => {
|
||||
await useCors(req, res);
|
||||
await useAuth(req, res);
|
||||
await useValidate(schema, req, res);
|
||||
|
||||
if (req.method === 'GET') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue