Skip to content

Commit

Permalink
docs: 📝 add api route example
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmannZ committed Nov 1, 2023
1 parent 56fae43 commit b76bc4b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/with-app-router/src/app/api/bar-baz/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export async function GET() {
return Response.json({
bar: process.env.BAR,
baz: process.env.BAZ,
});
}

export const dynamic = 'force-dynamic';

0 comments on commit b76bc4b

Please sign in to comment.