about summary refs log tree commit diff
path: root/src/pronouns
diff options
context:
space:
mode:
Diffstat (limited to 'src/pronouns')
-rw-r--r--src/pronouns/web.clj5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pronouns/web.clj b/src/pronouns/web.clj
index 7ea6a72..8b4530d 100644
--- a/src/pronouns/web.clj
+++ b/src/pronouns/web.clj
@@ -3,6 +3,7 @@
             [compojure.handler :refer [site]]
             [compojure.route :as route]
             [clojure.java.io :as io]
+            [clojure.string :as s]
             [ring.middleware.logger :as logger]
             [ring.middleware.stacktrace :as trace]
             [ring.middleware.session :as session]
@@ -17,6 +18,10 @@
        {:status 200
         :headers {"Content-Type" "text/plain"}
         :body "a blurb explaining how to use this site"})
+  (GET "/:subject/:object/:possessive-determiner/:possessive-pronoun/:reflexive" {params :params}
+       {:status 200
+        :headers {"Content-Type" "text/plain"}
+        :body (str (:subject params) " goes to the park")})
   (ANY "*" []
        (route/not-found (slurp (io/resource "404.html")))))