mirror of
https://github.com/Xevion/xevion.dev.git
synced 2025-12-05 23:16:57 -06:00
Fix req.method comparison METHOD check
This commit is contained in:
@@ -6,7 +6,7 @@ export default async function handler(
|
||||
req: NextApiRequest,
|
||||
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" });
|
||||
|
||||
// Get the resume
|
||||
|
||||
Reference in New Issue
Block a user