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
I was testing Deno Deploy functionality and I made function
main()
listening on/
, andsend()
listening on/send
. In global scope I made a variableversion
to be0.0.1
. Both of these functions are returning some info andversion
. Whenmain()
function was triggeredversion
was as expected0.0.1
but when I sent a POST request to/send
,version
wasundefined
. Do you know what's wrong? Thanks