elysiaExample
HTTP
v8
Preview
1
2
3
4
5
6
export
const
elysiaExample
=
async
(
req
)
=>
{
const
{
Elysia
}
=
await
import
(
"https://esm.sh/elysia@0.7.15"
)
;
const
app
=
new
Elysia
(
)
.
get
(
"/"
,
(
)
=>
"Hello Elysia"
)
;
return
app
.
fetch
(
req
)
;
}
;
Browser preview