aboutsummaryrefslogtreecommitdiff
path: root/conf/clog.conf
diff options
context:
space:
mode:
authorMichael McVady <femtonaut@gmail.com>2024-03-24 18:37:24 -0500
committerMichael McVady <femtonaut@gmail.com>2024-03-24 18:37:24 -0500
commit98f09fa36fac0048ce2096cf3dddd7e7e1aa1b68 (patch)
tree887533a28630e65ba42af30138c0b59d06bcad45 /conf/clog.conf
parent63f6938ea309303351a6b69d1c9092fceb58b95c (diff)
Add delete
Diffstat (limited to 'conf/clog.conf')
-rw-r--r--conf/clog.conf16
1 files changed, 11 insertions, 5 deletions
diff --git a/conf/clog.conf b/conf/clog.conf
index 0739f70..c469376 100644
--- a/conf/clog.conf
+++ b/conf/clog.conf
@@ -58,11 +58,6 @@ domain * {
methods get
}
- route ^/entries/[a-z0-9\-]+/edit$ {
- handler edit_entry
- methods get
- }
-
route ^/entries/[a-z0-9\-]+$ {
handler update_entry
methods post
@@ -71,6 +66,17 @@ domain * {
validate post body v_text
}
+ route ^/entries/[a-z0-9\-]+/delete$ {
+ handler delete_entry
+ methods get
+ }
+
+ route ^/entries/[a-z0-9\-]+/edit$ {
+ handler edit_entry
+ methods get
+ }
+
+
route ^/.*$ {
handler redirect
}