summaryrefslogtreecommitdiff
path: root/src/chef/routes.clj
diff options
context:
space:
mode:
authorTim <contact@bytim.eu>2025-05-25 16:00:21 +0200
committerTim <contact@bytim.eu>2025-05-25 16:00:21 +0200
commitaaf4304c7cf6259fc00366608ce643cf9697a887 (patch)
treea7360a573ba7624c676aa6774480bd8bbbc0a9be /src/chef/routes.clj
parentd658c185d0c56a72b062a234982c5d1f8da49c1c (diff)
downloadchef-aaf4304c7cf6259fc00366608ce643cf9697a887.tar.xz
chef-aaf4304c7cf6259fc00366608ce643cf9697a887.zip
Make categories editable; TODO: store the root question
Diffstat (limited to 'src/chef/routes.clj')
-rw-r--r--src/chef/routes.clj3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chef/routes.clj b/src/chef/routes.clj
index fe568cc..a054b1d 100644
--- a/src/chef/routes.clj
+++ b/src/chef/routes.clj
@@ -23,7 +23,8 @@
["/api"
["/admin"
["/create-category" {:post {:handler cpaapi/create-category}}]
- ["/delete-category/:id" {:delete {:handler cpaapi/delete-category}}]]]])
+ ["/delete-category/:id" {:delete {:handler cpaapi/delete-category}}]
+ ["/edit-category/:id" {:post {:handler cpaapi/edit-category}}]]]])
(def ring-handler (delay (-> router
rring/router