diff --git a/src/pages/api/[...error].ts b/src/pages/api/[...error].ts new file mode 100644 index 0000000..cbc00f6 --- /dev/null +++ b/src/pages/api/[...error].ts @@ -0,0 +1,7 @@ +import type { NextApiRequest, NextApiResponse } from 'next'; + +type ResponseData = { status: false; message: string }; + +export default async function handler(_: NextApiRequest, res: NextApiResponse) { + res.status(400).json({ status: false, message: 'Not found' }); +}