diff options
| author | 2025-11-04 23:31:01 -0800 | |
|---|---|---|
| committer | 2025-11-04 23:31:01 -0800 | |
| commit | 96a007eecea9b67ba06d01c8fcdd9c09fc4b43e9 (patch) | |
| tree | 5f691a3f3ec2faa0fb92b3394108cb4c63fccac5 /src/controller/routes.phel | |
| download | lezer-96a007eecea9b67ba06d01c8fcdd9c09fc4b43e9.tar.gz lezer-96a007eecea9b67ba06d01c8fcdd9c09fc4b43e9.zip | |
Initial commit
Diffstat (limited to 'src/controller/routes.phel')
| -rw-r--r-- | src/controller/routes.phel | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/controller/routes.phel b/src/controller/routes.phel new file mode 100644 index 0000000..ae0cdf1 --- /dev/null +++ b/src/controller/routes.phel @@ -0,0 +1,13 @@ +(ns web-skeleton\controller\routes + (:require web-skeleton\view\main :refer [index-html]) + (:require web-skeleton\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)))})) |
