Files
kapow/poc/examples/helloworld.pow
Roberto Abdelkader Martínez Pérez 7f120a87e7 Fixing poc.
2019-04-26 08:38:32 +02:00

15 lines
469 B
Bash
Executable File

#!/bin/bash
kroute add -X POST --entrypoint ./topdf '/convert/{from}/pdf'
kroute add -X POST --entrypoint '/bin/zsh -c' '/convert/{from}/{to}' - <<-'EOF'
pandoc --from=$(request /match/from) --to=$(request /match/to) --output=>(response /body) =(request /body)
EOF
kroute add -X GET '/formats/input' - <<-'EOF'
pandoc --list-input-formats | response /body
EOF
kroute add -X GET '/formats/output' -c 'pandoc --list-output-formats | grep -v pdf | response /body'