This commit is contained in:
Héctor Hurtado
2019-10-31 15:22:47 +01:00
parent 84a106db19
commit 7c48eb730d
9 changed files with 319 additions and 186 deletions
+6
View File
@@ -0,0 +1,6 @@
kapow route add /log_and_stuff - <<- 'EOF'
callback_url=$(kapow get /request/params/callback)
echo this is a quite long sentence and other stuff | tee log.txt | kapow set /response/body
echo sending to $callback_url | kapow set /response/body
curl -X POST --data-binary @log.txt $callback_url | kapow set /response/body
EOF