mirror of
https://github.com/honojs/hono.git
synced 2024-11-25 05:07:03 +01:00
docs: update readme
This commit is contained in:
parent
4ad7259796
commit
4822077fea
@ -190,9 +190,7 @@ app.use('/message/*', async (c, next) => {
|
||||
app.get('/message/hello', (c) => c.text('Hello Middleware!'))
|
||||
```
|
||||
|
||||
## Error
|
||||
|
||||
### Not Found
|
||||
## Not Found
|
||||
|
||||
`app.notFound` for customizing Not Found Response.
|
||||
|
||||
@ -202,7 +200,7 @@ app.notFound((c) => {
|
||||
})
|
||||
```
|
||||
|
||||
### Error Handling
|
||||
## Error Handling
|
||||
|
||||
`app.onError` handle the error and return the customized Response.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user