mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
add cors + adjusting dockerfile
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
|
||||
import { checkApiKey, checkAuthorization, eventsListApi } from '~/server/services/ApiService';
|
||||
import { useCors } from '~/server/utils/useCors';
|
||||
|
||||
|
||||
export default defineEventHandler(async event => {
|
||||
|
||||
useCors(event);
|
||||
|
||||
const { rows, from, to, limit } = await readBody(event);
|
||||
|
||||
const token = checkAuthorization(event);
|
||||
|
||||
Reference in New Issue
Block a user