Update route.js

This commit is contained in:
suraj.shenoy.b@gmail.com
2025-01-25 21:43:27 -06:00
parent 1e6306a9fc
commit ee3335d16e

View File

@@ -43,7 +43,7 @@ async function parseMultipartForm(req) {
} }
// Main handler // Main handler
export default async function handler(req, res) { export async function POST(req, res) {
if (req.method !== "POST") { if (req.method !== "POST") {
return res.status(405).json({ error: "Method not allowed. Use POST." }); return res.status(405).json({ error: "Method not allowed. Use POST." });
} }