From 98f09fa36fac0048ce2096cf3dddd7e7e1aa1b68 Mon Sep 17 00:00:00 2001 From: Michael McVady Date: Sun, 24 Mar 2024 18:37:24 -0500 Subject: Add delete --- conf/clog.conf | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'conf') 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 } -- cgit v1.2.3