This commit is contained in:
parent
71a527f345
commit
9ff5d1adee
1 changed files with 18 additions and 15 deletions
|
@ -87,10 +87,12 @@ async function handler(request: ExtendedRequest): Promise<Response> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Response.json({
|
return Response.json(
|
||||||
|
{
|
||||||
status: 200,
|
status: 200,
|
||||||
badges,
|
badges,
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
status: 200,
|
status: 200,
|
||||||
headers: {
|
headers: {
|
||||||
"Cache-Control": "public, max-age=60",
|
"Cache-Control": "public, max-age=60",
|
||||||
|
@ -102,7 +104,8 @@ async function handler(request: ExtendedRequest): Promise<Response> {
|
||||||
"Access-Control-Allow-Credentials": "true",
|
"Access-Control-Allow-Credentials": "true",
|
||||||
"Access-Control-Expose-Headers": "Content-Type",
|
"Access-Control-Expose-Headers": "Content-Type",
|
||||||
},
|
},
|
||||||
});
|
},
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export { handler, routeDef };
|
export { handler, routeDef };
|
||||||
|
|
Loading…
Add table
Reference in a new issue