Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;;'client'
- (comment
- (client/post "http://localhost:3000"
- {:form-params
- {:some-edn
- (pr-str
- '(defn hello
- []
- "hi there"))}})
- (:body (client/get "http://localhost:3000")))
- ;;server
- (defn hello
- []
- "hey")
- (defroutes app-routes
- (GET "/" [] (#'hello))
- (POST "/" [some-edn] (eval (read-string some-edn)))
- (route/not-found "Not Found"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement