summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim <contact@bytim.eu>2025-06-21 12:26:05 +0200
committerTim <contact@bytim.eu>2025-06-21 12:26:05 +0200
commita18ef423d43c2d2b8f2b6b3a74ada48f1f4eaf5f (patch)
tree587741bc119a912b8b221ce260f43649863e3586 /src
parent52591459a20119ff844b4be4a5604096a066f4fd (diff)
downloadchef-a18ef423d43c2d2b8f2b6b3a74ada48f1f4eaf5f.tar.xz
chef-a18ef423d43c2d2b8f2b6b3a74ada48f1f4eaf5f.zip
Fix routes
Diffstat (limited to 'src')
-rw-r--r--src/chef/routes.clj5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/chef/routes.clj b/src/chef/routes.clj
index 4635317..13e20dd 100644
--- a/src/chef/routes.clj
+++ b/src/chef/routes.clj
@@ -42,8 +42,9 @@
:delete {:handler caacategory/handle-delete}}]]
["/recipe"
["/create" {:post {:handler caarecipe/handle-create}}]
- ["/:id" {:post {:handler caarecipe/handle-edit}
- :delete {:handler caarecipe/handle-delete}}
+ ["/:id"
+ ["/" {:post {:handler caarecipe/handle-edit}
+ :delete {:handler caarecipe/handle-delete}}]
["/thumbnail" {:delete {:handler caarecipe/handle-delete-thumbnail}}]]]]]])
(def ring-handler (delay (-> router