From e1846d4c21165e7d2137a11152e4a8f171c90324 Mon Sep 17 00:00:00 2001 From: Michael McVady Date: Sun, 24 Mar 2024 22:04:24 -0500 Subject: Update edit route --- conf/clog.conf | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'conf') diff --git a/conf/clog.conf b/conf/clog.conf index c469376..8d8e778 100644 --- a/conf/clog.conf +++ b/conf/clog.conf @@ -58,14 +58,6 @@ domain * { methods get } - route ^/entries/[a-z0-9\-]+$ { - handler update_entry - methods post - - validate post title v_text - validate post body v_text - } - route ^/entries/[a-z0-9\-]+/delete$ { handler delete_entry methods get @@ -75,7 +67,14 @@ domain * { handler edit_entry methods get } + + route ^/entries/[a-z0-9\-]+/edit$ { + handler update_entry + methods post + validate post title v_text + validate post body v_text + } route ^/.*$ { handler redirect -- cgit v1.2.3