wildebeest/functions/api/v1/custom_emojis.ts

12 wiersze
305 B
TypeScript

import { cors } from 'wildebeest/backend/src/utils/cors'
export const onRequest = async () => {
const headers = {
...cors(),
'content-type': 'application/json; charset=utf-8',
'cache-control': 'max-age=300, public',
}
const res: any = []
return new Response(JSON.stringify(res), { headers })
}