Skip to content

Commit

Permalink
docs: fix typo in README
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Feb 4, 2024
1 parent 4d4034b commit 567245e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -922,10 +922,10 @@ const app = new Application;

const router = new Router();

router.get("/books/:id", route((req, ctx)) => {
router.get("/books/:id", route((req, ctx) => {
console.log(ctx.params.id);
return Response.json({ title: "hello world", id: ctx.params.id });
});
}));

app.use(router.routes());

Expand Down

0 comments on commit 567245e

Please sign in to comment.