edit_redirect_example
HTTP (deprecated)
v1
Preview
1
2
3
4
5
6
7
import
{
editRedirect
}
from
"https://esm.town/v/stevekrouse/editRedirect"
;
import
{
Hono
}
from
"npm:hono@3"
;
const
app
=
new
Hono
(
)
;
app
.
get
(
"/"
,
(
c
)
=>
c
.
text
(
"Hello world!"
)
)
;
app
.
get
(
"/edit"
,
(
c
)
=>
editRedirect
(
)
)
;
export
default
app
.
fetch
;
Preview