diff --git a/pages/api/auth/forgot-password.ts b/pages/api/auth/forgot-password.ts index e856ed42..41596595 100644 --- a/pages/api/auth/forgot-password.ts +++ b/pages/api/auth/forgot-password.ts @@ -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 {