about summary refs log tree commit diff
path: root/src/pronouns
diff options
context:
space:
mode:
authorMorgan <m@morganastra.me>2015-03-03 09:23:18 +0000
committerMorgan <m@morganastra.me>2015-03-03 09:23:18 +0000
commit4b73f545d7b4155749a588f5bc127219ce8a19fc (patch)
tree6d03b61d7f488dd0ef9a8d6b4552357b94f99690 /src/pronouns
parentcf2e1949b54422012c7d5ad77bfa6e14046fe210 (diff)
IT WORKS (but only if you put all 5 cases)
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")))))