I expose three (3) functions (route):
- Default helloworld route
- https://us-central1-function-example.cloudfunctions.net/helloWorld
This is the one you submit to paystack
It only handles POST method see the
functions/index.jsfile - https://us-central1-function-example.cloudfunctions.net/payStackHook This is just to demostrate that you can create multiple functions (routes)
- https://us-central1-function-example.cloudfunctions.net/test
Check the functions/index.js folder for implementation
To initialize function in an existing code use:
firebase init functions