Fetch
HTTP (deprecated)
v0
Preview
1
2
3
4
5
6
7
8
9
10
11
12
import
{
Hono
}
from
"npm:hono"
;
import
{
cors
}
from
"npm:hono/cors"
;
const
app
=
new
Hono
(
)
;
app
.
use
(
cors
(
)
)
;
app
.
get
(
"/"
,
async
(
c
)
=>
{
return
c
.
json
(
{
text
:
"Hello World"
}
)
;
}
)
;
export
default
app
.
fetch
;
Preview