v1
HTTP (deprecated)
v6
Preview
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{
Hono
}
from
"npm:hono@4"
;
const
app
=
new
Hono
(
)
;
app
.
get
(
"/"
,
(
ctx
)
=>
{
return
ctx
.
json
(
{
ok
:
true
}
)
;
}
)
;
app
.
get
(
"about"
,
(
ctx
)
=>
{
return
ctx
.
text
(
"About US"
)
;
}
)
;
export
default
app
.
fetch
;
Preview