mirror of https://github.com/dapr/docs.git
Update daprdocs/content/en/reference/components-reference/supported-bindings/cron.md
Co-authored-by: greenie-msft <56556602+greenie-msft@users.noreply.github.com>
This commit is contained in:
parent
22ea0b39d2
commit
17c16df9dd
|
@ -61,7 +61,7 @@ For ease of use, the Dapr cron binding also supports few shortcuts:
|
|||
|
||||
## Listen to the cron binding
|
||||
|
||||
After setting up the cron binding, all you need to do is listen on an endpoint that matches the name of your component. Assume the <NAME> is `scheduled`. Note that this will be made as a HTTP `POST` request. The below example shows how a simple Node.js Express application can receive calls on the `/scheduled` endpoint and write a message to the console.
|
||||
After setting up the cron binding, all you need to do is listen on an endpoint that matches the name of your component. Assume the <NAME> is `scheduled`. This will be made as a HTTP `POST` request. The below example shows how a simple Node.js Express application can receive calls on the `/scheduled` endpoint and write a message to the console.
|
||||
|
||||
```js
|
||||
app.post('/scheduled', async function(req, res){
|
||||
|
|
Loading…
Reference in New Issue