2
0
Files
bot/apps/viewer/pages/api/mock/success.ts
Baptiste Arnaud e268638786 ci: Fix e2e tests
2022-05-13 06:47:39 -07:00

16 lines
394 B
TypeScript

import { withSentry } from '@sentry/nextjs'
import { NextApiRequest, NextApiResponse } from 'next'
import { methodNotAllowed } from 'utils'
const handler = (req: NextApiRequest, res: NextApiResponse) => {
if (req.method === 'POST') {
return res.status(200).json({
statusCode: 200,
statusMessage: 'OK',
})
}
methodNotAllowed(res)
}
export default withSentry(handler)