Skip to content

Commit

Permalink
fix: Hono usage docs (#990)
Browse files Browse the repository at this point in the history
  • Loading branch information
robiiinos authored Jul 22, 2024
1 parent 27313e3 commit e9a915a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pages/docs/query/api-functions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ Use `ponder.use(...){:ts}` to add middleware to your API functions. Middleware f
```ts filename="src/api/index.ts" {3}
import { ponder } from "@/generated";

ponder.use((c) => {
ponder.use((c, next) => {
console.log("Request received:", c.req.url);
return c.next();
return next();
});
```

Expand Down

0 comments on commit e9a915a

Please sign in to comment.