mirror of
https://github.com/openfaas/faas.git
synced 2025-06-21 00:06:38 +00:00
Enable routing via /functions/ endpoint
This commit is contained in:
18
sample-functions/WebhookStash/README.md
Normal file
18
sample-functions/WebhookStash/README.md
Normal file
@ -0,0 +1,18 @@
|
||||
WebhookStash
|
||||
============
|
||||
|
||||
Example serverless function shows how to stash way contents of webhooks called via API gateway.
|
||||
|
||||
Each file is saved with the UNIX timestamp in nano seconds plus an extension of .txt
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
# curl -X POST -v -d @$HOME/.ssh/id_rsa.pub localhost:8080/function/webhookstash
|
||||
```
|
||||
|
||||
Then if you find the replica you can check the disk:
|
||||
|
||||
```
|
||||
# docker exec webhookstash.1.z054csrh70tgk9s5k4bb8uefq find
|
||||
```
|
Reference in New Issue
Block a user