From 729ac073ca4fac601330db5333b4c39b7905f01e Mon Sep 17 00:00:00 2001 From: hashrock Date: Mon, 4 Sep 2023 09:53:30 +0900 Subject: [PATCH] fix(doc): example code should return the response (#1727) --- docs/latest/concepts/routes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/latest/concepts/routes.md b/docs/latest/concepts/routes.md index b517c5ef..7c31b87f 100644 --- a/docs/latest/concepts/routes.md +++ b/docs/latest/concepts/routes.md @@ -98,7 +98,7 @@ interface Data { export const handler: Handlers = { async GET(req, ctx) { const value = await loadFooValue(); - ctx.render({ foo: value }); + return ctx.render({ foo: value }); }, };