summaryrefslogtreecommitdiff
path: root/src/chef/routes.clj
diff options
context:
space:
mode:
authorTim <contact@bytim.eu>2025-05-31 17:03:51 +0200
committerTim <contact@bytim.eu>2025-05-31 17:03:51 +0200
commitffb5d0b740e3fa23143ad89dab29a44d5b0acd34 (patch)
tree1c4ff1d69bbf81a0a3dfe7c2c2bf1f5cd3e867ad /src/chef/routes.clj
parentea7b0078478ba7925f2db3cb1fa038e8a3d85ab8 (diff)
downloadchef-ffb5d0b740e3fa23143ad89dab29a44d5b0acd34.tar.xz
chef-ffb5d0b740e3fa23143ad89dab29a44d5b0acd34.zip
Add real data to home page + add search logic + add recipe pages
Diffstat (limited to 'src/chef/routes.clj')
-rw-r--r--src/chef/routes.clj4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/chef/routes.clj b/src/chef/routes.clj
index 9b16565..6b57f4f 100644
--- a/src/chef/routes.clj
+++ b/src/chef/routes.clj
@@ -8,6 +8,7 @@
[chef.pages.home :as cphome]
[chef.pages.admin :as cpadmin]
+ [chef.pages.recipe :as cprecipe]
[chef.components.search :as ccsearch]
@@ -15,10 +16,11 @@
[chef.pages.admin.recipe-editor :as cparecipe-editor]))
(def router [["/" {:get {:handler cphome/handler}}]
+ ["/recipes/:id" {:get cprecipe/handler}]
+ ["/static/*" (rring/create-resource-handler)]
["/admin"
["/" {:get {:handler cpadmin/handler}}]
["/recipe-editor/:id" {:get {:handler cparecipe-editor/handler}}]]
- ["/static/*" (rring/create-resource-handler)]
["/components"
["/search" {:get {:handler ccsearch/handler}}]]