I am using Firebase as the backend for my app. I am also using firebase-functions. My index.js looks like this (and more, but that\'s likely not relevant to my question below) -