Update route.js

This commit is contained in:
suraj.shenoy.b@gmail.com
2025-01-25 20:56:09 -06:00
parent cbe2ce85be
commit 24a69e953f

View File

@@ -56,7 +56,7 @@ async function parseMultipartForm(req) {
} }
// Main handler // Main handler
export default async function PUT(req, res) { export async function PUT(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.' });
} }