Skip to content

Commit

Permalink
fix: formating
Browse files Browse the repository at this point in the history
  • Loading branch information
Eveeifyeve committed Aug 25, 2024
1 parent cc93ece commit 9739725
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/pages/configSchema.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export const GET = async () => {
return Error("Config schema not found");
}

const {url} = await octokit.request(
'GET /repos/{owner}/{repo}/releases/assets/{asset_id}',
const { url } = await octokit.request(
"GET /repos/{owner}/{repo}/releases/assets/{asset_id}",
{
owner,
repo,
Expand All @@ -25,17 +25,17 @@ export const GET = async () => {
},
asset_id: schema.id,
},
)
);

const response = await fetch(url, {
const response = await fetch(url, {
method: "GET",
})
});

if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`)
throw new Error(`HTTP error! status: ${response.status}`);
}

const responseText = await response.json()
const responseText = await response.json();

return new Response(JSON.stringify(responseText), { status: 200 });
} catch (error) {
Expand Down

0 comments on commit 9739725

Please sign in to comment.