(ns example.plain) (def routes ["/plain" ["/plus" {:get (fn [{{:strs [x y]} :query-params :as req}] {:status 200 :body {:total (+ (Long/parseLong x) (Long/parseLong y))}}) :post (fn [{{:keys [x y]} :body-params}] {:status 200 :body {:total (+ x y)}})}]])