discordEventReceiver
HTTP (deprecated)
v1
Preview
1
2
3
4
5
6
7
export
default
async
function
handler
(
req
:
Request
)
{
if
(
req
.
method
!==
'POST'
)
{
return
new
Response
(
'Method not allowed'
,
{
status
:
405
}
)
;
}
console
.
log
(
await
req
.
json
(
)
)
;
return
Response
.
json
(
{
ok
:
true
}
)
;
}
Preview