Updated ReportsTable.

This commit is contained in:
Mike Cao 2023-10-14 21:59:54 -07:00
parent 94a27226d1
commit 012d31e010
7 changed files with 12 additions and 81 deletions

View file

@ -1,3 +1,4 @@
import * as yup from 'yup';
import { canViewWebsite } from 'lib/auth';
import { useAuth, useCors, useValidate } from 'lib/middleware';
import { NextApiRequestQueryBody, SearchFilter } from 'lib/types';
@ -9,7 +10,6 @@ export interface ReportsRequestQuery extends SearchFilter {
id: string;
}
import * as yup from 'yup';
const schema = {
GET: yup.object().shape({
id: yup.string().uuid().required(),