2022-03-07 08:12:05 +01:00
|
|
|
import { withSentry } from '@sentry/nextjs'
|
|
|
|
import { NextApiRequest, NextApiResponse } from 'next'
|
2022-09-18 09:46:42 +02:00
|
|
|
import { methodNotAllowed } from 'utils/api'
|
2022-03-07 08:12:05 +01:00
|
|
|
|
|
|
|
const handler = (req: NextApiRequest, res: NextApiResponse) => {
|
|
|
|
if (req.method === 'POST') {
|
|
|
|
return res.status(200).send(req.body)
|
|
|
|
}
|
|
|
|
return methodNotAllowed(res)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default withSentry(handler)
|