Skip to content

Commit

Permalink
Async my ass
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Aug 20, 2024
1 parent e9430df commit 0471ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/posts/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export async function GET() {
const data = fetch(
const data = await fetch(
"https://pub-3db3ed9313c4427fadfa81f0323b18f8.r2.dev/latest.json",
).then((res) => res.json());
return Response.json(data);
Expand Down

0 comments on commit 0471ef2

Please sign in to comment.