Firebase has two methods for creating HTTP functions, onRequest follows a REST pattern and onCall gives you access to the Firebase JavaScript SDK.
onRequest
onCall