remove mail trigger

This commit is contained in:
Thomas Ruoff
2022-07-06 23:14:24 +02:00
parent d89f9a8825
commit 2f4cd1e50d
2 changed files with 0 additions and 32 deletions

View File

@@ -1,20 +0,0 @@
import { log } from '../../helpers/log'
import { NextApiRequest, NextApiResponse } from 'next'
export default async function useHandler(
req: NextApiRequest,
res: NextApiResponse
): Promise<void> {
const { method } = req
switch (method) {
case 'GET':
log.info('sending mail triggered')
res.status(200).end('DONE')
res.end()
break
default:
res.setHeader('Allow', ['GET'])
res.status(405).end(`Method ${method} Not Allowed`)
}
}