Variables becoming undefined when recieving POST requests
Libertas007 opened this issue · comments
Libertas commented
I was testing Deno Deploy functionality and I made function main()
listening on /
, and send()
listening on /send
. In global scope I made a variable version
to be 0.0.1
. Both of these functions are returning some info and version
. When main()
function was triggered version
was as expected 0.0.1
but when I sent a POST request to /send
, version
was undefined
.
Do you know what's wrong?
Thanks