Skip to content

Commit

Permalink
fix: delete handler
Browse files Browse the repository at this point in the history
  • Loading branch information
mini-aron committed Jul 20, 2024
1 parent dca616e commit ccdd37f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/app/src/pages/api/server/student/pdf.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
import type { NextApiRequest, NextApiResponse } from 'next'

export const config = {
api: {
bodyParser: {
sizeLimit: '10mb',
},
},
}

const handler = async (req: NextApiRequest, res: NextApiResponse) => {
if (req.method === 'PUT') {
res.status(200).json({ message: 'File uploaded successfully' })
} else {
res.status(413).json({ message: 'Method not allowed' })
}
}

export default handler

0 comments on commit ccdd37f

Please sign in to comment.