forked from creations/badgeAPI
fix lint
This commit is contained in:
parent
71a527f345
commit
9ff5d1adee
1 changed files with 18 additions and 15 deletions
|
@ -87,22 +87,25 @@ async function handler(request: ExtendedRequest): Promise<Response> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Response.json({
|
return Response.json(
|
||||||
status: 200,
|
{
|
||||||
badges,
|
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",
|
|
||||||
},
|
},
|
||||||
});
|
{
|
||||||
|
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 };
|
export { handler, routeDef };
|
||||||
|
|
Loading…
Add table
Reference in a new issue