satyarohith / sift

Sift is a routing and utility library for Deno Deploy.
https://deno.land/x/sift
MIT License
170 stars 14 forks source link

Variables becoming undefined when recieving POST requests #50

Closed Libertas007 closed 2 years ago

Libertas007 commented 2 years ago

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