Browse Source

Merge branch 'patch-3' of https://github.com/yogthos/FrameworkBenchmarks into PR663

Mike Smith 11 years ago
parent
commit
d1e4687670
1 changed files with 4 additions and 0 deletions
  1. 4 0
      luminus/hello/src/hello/routes/home.clj

+ 4 - 0
luminus/hello/src/hello/routes/home.clj

@@ -6,6 +6,10 @@
 
 (defroutes home-routes
   (GET "/" [] "Hello, World!")
+  (GET "/plaintext" []
+       {:status 200
+        :headers {"Content-Type" "text/plain; charset=utf-8"}
+        :body "Hello, World!"})
   (GET "/json" [] (response/json {:message "Hello, World!"}))
   (GET "/db" [] (response/json (first (run-queries 1))))
   (GET "/db/:queries" [queries] (response/json (run-queries (get-query-count queries))))