Skip to content

Commit 815d870

Browse files
update: the end point and response header
1 parent b726e7c commit 815d870

File tree

2 files changed

+2
-73
lines changed

2 files changed

+2
-73
lines changed

src/pages/api/capture.ts

Lines changed: 0 additions & 73 deletions
This file was deleted.

src/pages/api/capt.ts renamed to src/pages/api/generate.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ export const GET: APIRoute = async ({ url }) => {
6969
status: 200,
7070
headers: {
7171
'Content-Type': 'image/png',
72+
'access-control-allow-origin': '*',
73+
'cache-control': `public, max-age=31536000`,
7274
},
7375
})
7476
} catch (error) {

0 commit comments

Comments
 (0)