kopia lustrzana https://github.com/cloudflare/wildebeest
12 wiersze
305 B
TypeScript
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 })
|
|
}
|