feat(integration): 🚸 Easy webhook config
This commit is contained in:
13
apps/builder/pages/api/mock/webhook-easy-config.ts
Normal file
13
apps/builder/pages/api/mock/webhook-easy-config.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { withSentry } from '@sentry/nextjs'
|
||||
import { NextApiRequest, NextApiResponse } from 'next'
|
||||
import { methodNotAllowed } from 'utils'
|
||||
|
||||
const handler = (req: NextApiRequest, res: NextApiResponse) => {
|
||||
console.log(req.method)
|
||||
if (req.method === 'POST') {
|
||||
return res.status(200).send(req.body)
|
||||
}
|
||||
return methodNotAllowed(res)
|
||||
}
|
||||
|
||||
export default withSentry(handler)
|
Reference in New Issue
Block a user