summaryrefslogtreecommitdiffstats
path: root/src/controller/routes.phel
blob: 5f93cc23e77888b18d2f5ae4743d300f3a2da695 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
(ns lezer.controller.routes
  (:require lezer.view.main :refer [index-html])
  (:require lezer.module.greet :as g)
  (:require phel.router :as r)
  (:require phel.http :as h))

(defn index-handler [req]
  (h/response-from-map {:status 200
                        :body index-html}))

(defn ping-handler [req]
  (h/response-from-map {:status 200
                        :body (g/greet (str "pong - " (rand)))}))