satyarohith / sift

Sift is a routing and utility library for Deno Deploy.

Home Page:https://deno.land/x/sift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Variables becoming undefined when recieving POST requests

Libertas007 opened this issue · comments

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