fix cors on api

This commit is contained in:
Emily
2024-09-28 13:42:40 +02:00
parent 33b730e66b
commit 69bb6fb03c
5 changed files with 6 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ import { useCors } from '~/server/utils/useCors';
export default defineEventHandler(async event => {
useCors(event);
if (useCors(event)) return '';
const { rows, from, to, limit } = await readBody(event);