feat(api): add a catch-all route

This commit is contained in:
zyachel 2023-10-30 01:25:32 +05:30
parent 4dffbbc0ec
commit 9fdd731136

View file

@ -0,0 +1,7 @@
import type { NextApiRequest, NextApiResponse } from 'next';
type ResponseData = { status: false; message: string };
export default async function handler(_: NextApiRequest, res: NextApiResponse<ResponseData>) {
res.status(400).json({ status: false, message: 'Not found' });
}