From 4822077fea1219cff9bd8c3ae517b473c7868953 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Sat, 26 Feb 2022 16:19:53 +0900 Subject: [PATCH] docs: update readme --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3e598ecb..c201e121 100644 --- a/README.md +++ b/README.md @@ -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.