Function webhook_flows::create_endpoint
source · pub async fn create_endpoint()
Expand description
Register a callback closure with the query and body of the request for the webhook service.
The query is formed as a [HashMap]. For example, say the entrypoint of the webhook service is
https://code.flows.network/webhook/6rtSi9SEsC?param=hello
then the query will look like HashMap("param", Value::String("hello"))
The body is the raw bytes of the request body.