mirror of
https://github.com/honojs/hono.git
synced 2024-11-25 13:19:30 +01:00
c5cc9f25a6
# BREAKING CHANGES!!! `app.route` is changed: **Chained route** is obsolete: ``` app.route('/') .get((c) => c.text('get /')) // ^^^ Not working now!! ``` Now, `app.route` enables **nested route**: ``` const book = app.route('/book') book.get('/', (c) => c.text('List books')) // => GET /book book.get('/:id', (c) => { return c.text('Get Book: ' + c.req.param('id'))) // => GET /book/:id }) ``` |
||
---|---|---|
.. | ||
basic | ||
blog | ||
compute-at-edge | ||
durable-objects | ||
jsx-ssr | ||
mustache | ||
serve-static |