Trying to remove the /api
prefix from my API requests. Currently set up like this:
exports.api = functions.https.onRequest(app)
However, experiencing issues when trying to change it to this:
module.exports = functions.https.onRequest(app)
Is there any known issue with Cloud Functions and module.exports
? Wondering if this is a Firebase-specific problem or more of a general JavaScript issue.