Ghost
New
phantomknight287
/
aero
public
Star
0
Fork
0
Code
Issues
0
Pull requests
1
16c7709
4
branches
Go to file
t
Code
aero
mock-server
index.ts
change UI of flight stats
425c112
a year ago
17 lines · 384 B
1
import
{
Hono
}
from
"
hono
"
;
2
import
{
logger
}
3
const
app
=
new
4
5
app
.
use
(
logger
())
6
7
app
.
all
(
"
*
"
8
if
(
9
(
c
.
req
.
method
10
c
.
req
.
header
11
)
{
12
console
.
dir
(
await
13
}
14
return
c
.
text
15
}
)
;
16
17
export
default
app
;
from
"
hono/logger
"
;
Hono
()
;
;
,
async
(
c
)
=>
{
===
"
POST
"
||
c
.
req
.
method
===
"
PATCH
"
)
&&
(
"
Content-Type
"
)
===
"
application/json
"
c
.
req
.
json
()
,
{
depth
:
null
}
)
;
(
"
Hello Bun!
"
)
;