Ghost
New
phantomknight287
/
aero
public
Star
0
Fork
0
Code
Issues
0
Pull requests
1
ffa46ec
4
branches
Go to file
t
Code
aero
webhook
index.ts
Refactor app structure and add Wear OS support
fa737d3
2 years ago
15 lines · 351 B
1
const
server
=
Bun
.
serve
(
{
2
async
fetch
(
request
3
const
url
=
4
if
(
url
.
pathname
5
console
.
log
(
request
6
console
.
log
(
await
7
return
Response
.
json
8
}
9
10
return
new
Response
11
}
,
12
port
:
5000
,
13
}
)
;
14
15
console
.
log
(
"
Up at 5000
"
,
server
)
{
new
URL
(
request
.
url
)
;
===
"
/webhook
"
)
{
)
;
request
.
json
())
;
(
{
message
:
"
Hello World
"
}
)
;
(
"
Bun!
"
)
;
)