File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed
catacumba-app/src/catacumba_app
luminus-app/src/clj/luminus_app/routes Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 55
66(defn hello-handler
77 [context]
8+ (Thread/sleep 1000 )
89 " hello world" )
910
1011(defn routes [base]
Original file line number Diff line number Diff line change 33 [compojure.api.sweet :refer :all ]
44 [schema.core :as s]))
55
6+
7+ (defn hello-handler []
8+ (Thread/sleep 1000 )
9+ " hello world" )
10+
611(defapi service-routes
712 {:swagger {:ui " /swagger-ui"
813 :spec " /swagger.json"
1116 :description " Sample Services" }}}}
1217
1318 (GET " /" []
14- (ok " hello world " )))
19+ (ok ( hello-handler ) )))
Original file line number Diff line number Diff line change 22 (:require [yada.yada :as yada]))
33
44
5+
6+ (defn hello-handler [ctx]
7+ (Thread/sleep 1000 )
8+ " hello world" )
9+
10+
511(defn routes [base]
612 [base
713 [
8- [" " (yada/as-resource " hello world " )]
14+ [" " (yada/as-resource hello-handler )]
915 [true (yada/as-resource nil )]]])
You can’t perform that action at this time.
0 commit comments