IT WORKS (but only if you put all 5 cases)

This commit is contained in:
Morgan 2015-03-03 09:23:18 +00:00
parent cf2e1949b5
commit 4b73f545d7

View File

@ -3,6 +3,7 @@
[compojure.handler :refer [site]] [compojure.handler :refer [site]]
[compojure.route :as route] [compojure.route :as route]
[clojure.java.io :as io] [clojure.java.io :as io]
[clojure.string :as s]
[ring.middleware.logger :as logger] [ring.middleware.logger :as logger]
[ring.middleware.stacktrace :as trace] [ring.middleware.stacktrace :as trace]
[ring.middleware.session :as session] [ring.middleware.session :as session]
@ -17,6 +18,10 @@
{:status 200 {:status 200
:headers {"Content-Type" "text/plain"} :headers {"Content-Type" "text/plain"}
:body "a blurb explaining how to use this site"}) :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 "*" [] (ANY "*" []
(route/not-found (slurp (io/resource "404.html"))))) (route/not-found (slurp (io/resource "404.html")))))