mirror of
https://github.com/Xevion/xevion.dev.git
synced 2025-12-06 01:16:58 -06:00
Fix req.method comparison METHOD check
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user