about summary refs log tree commit diff stats
path: root/rnd
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2022-12-04 15:23:16 -0500
committerelioat <elioat@tilde.institute>2022-12-04 15:23:16 -0500
commit1dc376603675b093926a3ae9dea73a5dd10e93c9 (patch)
tree55d691444d69499925c7b553036900282c510a60 /rnd
parent5831542e01209729390f5171d54f505b133ab47e (diff)
downloaddecember-2022-1dc376603675b093926a3ae9dea73a5dd10e93c9.tar.gz
more playing with guile
Diffstat (limited to 'rnd')
-rw-r--r--rnd/guile/play.scm8
1 files changed, 6 insertions, 2 deletions
diff --git a/rnd/guile/play.scm b/rnd/guile/play.scm
index 92d5538..14b2b33 100644
--- a/rnd/guile/play.scm
+++ b/rnd/guile/play.scm
@@ -9,10 +9,14 @@
   (split-and-decode-uri-path (uri-path (request-uri request))))
 
 (define (hello-handler request body)
-  (if (equal? (request-path-components request)
+  (cond ((equal? (request-path-components request)
               '("banana"))
       (values '((content-type . (text/plain)))
-              "banana kiwi apple pineapple watermelon grapefruit")
+              "banana kiwi apple pineapple watermelon grapefruit"))
+        ((equal? (request-path-components request)
+                 '("corn"))
+         (values '((content-type . (text/plain)))
+                 "corn oats millit wheat amaranth quinoa"))
       (not-found request)))
 
 (define (not-found request)