use proper response code
parent
2c29368337
commit
ad657c0261
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue