From 4b73f545d7b4155749a588f5bc127219ce8a19fc Mon Sep 17 00:00:00 2001 From: Morgan Date: Tue, 3 Mar 2015 09:23:18 +0000 Subject: [PATCH] IT WORKS (but only if you put all 5 cases) --- src/pronouns/web.clj | 5 +++++ 1 file changed, 5 insertions(+) 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")))))