aboutsummaryrefslogtreecommitdiff
path: root/sample-cgi-handler.sh
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2022-12-19 15:41:43 +0000
committerJulio Capote <jcapote@gmail.com>2022-12-19 15:41:43 +0000
commitafdf8a014236452e098ab1266c9a9315824f8103 (patch)
tree0c1db202f6f5c81783d7d2ccb1502443ab84a8ae /sample-cgi-handler.sh
parent2211d7ace360548f6ee450f03d995c6bb246be2b (diff)
downloadcommunique-afdf8a014236452e098ab1266c9a9315824f8103.tar.gz
url helpers, cgi response format
Diffstat (limited to '')
-rwxr-xr-xsample-cgi-handler.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/sample-cgi-handler.sh b/sample-cgi-handler.sh
index afd4ada..7cef511 100755
--- a/sample-cgi-handler.sh
+++ b/sample-cgi-handler.sh
@@ -1,5 +1,14 @@
#!/bin/bash
-echo "Content-type: text/plain"
+echo "Content-type: application/activity+json"
echo ""
-echo "This is a random value from bash: $RANDOM on $(date)"
+echo '{
+ "@context": "https://www.w3.org/ns/activitystreams",
+ "type": "OrderedCollection",
+ "totalItems": 1,
+ "items": [
+ {
+ "type": "Note",
+ "content": "hi"
+ },
+ ]}'
exit 0