ci: ✅ Fix e2e tests
This commit is contained in:
15
apps/viewer/pages/api/mock/success.ts
Normal file
15
apps/viewer/pages/api/mock/success.ts
Normal file
@ -0,0 +1,15 @@
|
||||
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)
|
Reference in New Issue
Block a user