From 9ff5d1adee4cf177ac01c29ba869d3c8f75f9670 Mon Sep 17 00:00:00 2001 From: creations Date: Sat, 19 Apr 2025 14:00:29 -0400 Subject: [PATCH] fix lint --- src/routes/[id].ts | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/src/routes/[id].ts b/src/routes/[id].ts index 599a9c1..af6a621 100644 --- a/src/routes/[id].ts +++ b/src/routes/[id].ts @@ -87,22 +87,25 @@ async function handler(request: ExtendedRequest): Promise { ); } - 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 };