more tweaking

This commit is contained in:
Thomas Ruoff
2022-06-23 23:57:47 +02:00
parent 634d460df1
commit f9e0a33f3b
2 changed files with 4 additions and 3 deletions

View File

@@ -10,7 +10,8 @@ export default async function useHandler(
switch (method) {
case 'GET':
log.info('sending mail triggered')
res.statusCode = 200
res.status(200).end('DONE')
res.end()
break
default:
res.setHeader('Allow', ['GET'])