use proper response code

pull/307/head
femyeda 2021-06-25 09:17:39 -05:00
parent 2c29368337
commit ad657c0261
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ dayjs.extend(timezone);
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
if (req.method !== "POST") {
return res.status(400).json({ message: "" });
return res.status(405).json({ message: "" });
}
try {