I have a folder named functions, inside there is index.js.
On index.js I have the main function that accept all http :
exports.contentServer = functions.https.onRequest((request, response) => {
Since I have many more functions I need to organize my files, and I want to add another file, say payments.js, so that index.js can call functions inside payments.js, or even onCreate callbacks will be fired from payment.js.
If I just create another js file in functions, it won't work.
What has to be done to be able to have a single Cloud Function in another new js file ?