Fix Typo.

This commit is contained in:
Brian Cao 2022-11-17 22:46:05 -08:00
parent 5aa8187e42
commit f5eb974d8d
9 changed files with 104 additions and 17 deletions

View file

@ -5,18 +5,18 @@ import { NextApiResponse } from 'next';
import { getRandomChars, methodNotAllowed, ok } from 'next-basics';
import { createWebsiteByUser, getAllWebsites, getWebsitesByUserId } from 'queries';
export interface WebsitesReqeustQuery {
export interface WebsitesRequestQuery {
include_all?: boolean;
}
export interface WebsitesReqeustBody {
export interface WebsitesRequestBody {
name: string;
domain: string;
enableShareUrl: boolean;
}
export default async (
req: NextApiRequestQueryBody<WebsitesReqeustQuery, WebsitesReqeustBody>,
req: NextApiRequestQueryBody<WebsitesRequestQuery, WebsitesRequestBody>,
res: NextApiResponse,
) => {
await useCors(req, res);