summaryrefslogtreecommitdiffstats
path: root/src/app.phel
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-08-24 00:21:43 -0700
committerGravatar Tom Willemse2026-08-24 00:22:01 -0700
commit94a7f1fc01ec27f85853294c167c1ca05c3269b8 (patch)
tree1e33f63ec9e44903173daabcf1a577eed3d7b634 /src/app.phel
parent2edfa920e0be2b3d63f3c6b0fb36f0c1c32c4339 (diff)
downloadlezer-94a7f1fc01ec27f85853294c167c1ca05c3269b8.tar.gz
lezer-94a7f1fc01ec27f85853294c167c1ca05c3269b8.zip
Add simplistic database
This doesn't include a full database, or even a secure one, but this is the first step into moving forward with this project. I can now write to and read from a database.
Diffstat (limited to 'src/app.phel')
-rw-r--r--src/app.phel3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app.phel b/src/app.phel
index 9e1e0bd..ac3b94e 100644
--- a/src/app.phel
+++ b/src/app.phel
@@ -9,7 +9,8 @@
[["/" {:handler routes/index-handler}]
["/ping" {:name ::ping
:get {:handler routes/ping-handler}
- :post {:handler routes/ping-handler}}]])))
+ :post {:handler routes/ping-handler}}]
+ ["/book" {:post {:handler routes/book-create-handler}}]])))
(when-not *build-mode*
(h/emit-response (app (h/request-from-globals))))