Update route.js
This commit is contained in:
@@ -56,7 +56,7 @@ async function parseMultipartForm(req) {
|
||||
}
|
||||
|
||||
// Main handler
|
||||
export default async function PUT(req, res) {
|
||||
export async function PUT(req, res) {
|
||||
if (req.method !== 'POST') {
|
||||
return res.status(405).json({ error: 'Method not allowed. Use POST.' });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user