Browse Source

Add plaintext test

Zane Kansil 10 years ago
parent
commit
4d09fed9df
1 changed files with 11 additions and 2 deletions
  1. 11 2
      frameworks/Clojure/pedestal/src/pedestal/service.clj

+ 11 - 2
frameworks/Clojure/pedestal/src/pedestal/service.clj

@@ -12,12 +12,21 @@
                               (clojure-version)
                               (clojure-version)
                               (route/url-for ::about-page))))
                               (route/url-for ::about-page))))
 
 
-(defn json-test
+(defn json-serialization
   [request]
   [request]
   (bootstrap/json-response {:message "Hello, World!"}))
   (bootstrap/json-response {:message "Hello, World!"}))
 
 
+(defn plaintext
+  [request]
+  (ring-resp/response "Hello, World!"))
+
+
+
+
 (defroutes routes
 (defroutes routes
-  [[["/json" {:get json-test}]]])
+  [[
+  [  "/json" {:get json-serialization}]
+  [  "/plaintext" {:get plaintext}]]])
 
 
 ;; How the server will look, not the code to start it up
 ;; How the server will look, not the code to start it up
 (def service {:env :prod
 (def service {:env :prod