This commit is contained in:
creations 2025-04-19 14:00:29 -04:00
parent 71a527f345
commit 9ff5d1adee
Signed by: creations
GPG key ID: 8F553AA4320FC711

View file

@ -87,22 +87,25 @@ async function handler(request: ExtendedRequest): Promise<Response> {
);
}
return Response.json({
status: 200,
badges,
}, {
status: 200,
headers: {
"Cache-Control": "public, max-age=60",
"Content-Type": "application/json",
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, OPTIONS",
"Access-Control-Allow-Headers": "Content-Type",
"Access-Control-Max-Age": "86400",
"Access-Control-Allow-Credentials": "true",
"Access-Control-Expose-Headers": "Content-Type",
return Response.json(
{
status: 200,
badges,
},
});
{
status: 200,
headers: {
"Cache-Control": "public, max-age=60",
"Content-Type": "application/json",
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, OPTIONS",
"Access-Control-Allow-Headers": "Content-Type",
"Access-Control-Max-Age": "86400",
"Access-Control-Allow-Credentials": "true",
"Access-Control-Expose-Headers": "Content-Type",
},
},
);
}
export { handler, routeDef };