Fix req.method comparison METHOD check

This commit is contained in:
2025-03-21 12:28:39 -05:00
parent 5a1ab61c65
commit b768f5a40d

View File

@@ -6,7 +6,7 @@ export default async function handler(
req: NextApiRequest, req: NextApiRequest,
res: NextApiResponse, res: NextApiResponse,
) { ) {
if (req.method !== "GET" || req.method !== "HEAD") if (req.method !== "GET" && req.method !== "HEAD")
return res.status(405).json({ message: "Method not allowed" }); return res.status(405).json({ message: "Method not allowed" });
// Get the resume // Get the resume