From f810fe19b8152a32254133680e3d6f506e2277e6 Mon Sep 17 00:00:00 2001 From: Michael McVady Date: Thu, 11 Jan 2024 23:43:25 -0600 Subject: Just keep hacking --- conf/clog.conf | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'conf') diff --git a/conf/clog.conf b/conf/clog.conf index a36dffc..e787ec3 100644 --- a/conf/clog.conf +++ b/conf/clog.conf @@ -18,7 +18,7 @@ privsep worker { seccomp_tracing no validator v_uuid regex ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$ -validator v_text function v_example_func +# validator v_text function v_example_func domain * { attach notls @@ -26,12 +26,12 @@ domain * { filemap /static/ assets/static route / { - handler get_entries + handler get_index methods get } route /entries { - handler get_entries + handler get_index methods get } @@ -40,25 +40,25 @@ domain * { methods get } - # route ^/entries/[a-z0-9\-]+/edit$ { - # handler edit_entry - # methods get - # } - - # toy endpoint - route /form { - handler get_entry_form + route ^/entries/[a-z0-9\-]+/edit$ { + handler edit_entry methods get } - route /form { - handler post_entry_form - methods post + # toy endpoint + # route /form { + # handler get_entry_form + # methods get + # } + + # route /form { + # handler post_entry_form + # methods post - validate post id v_uuid - validate post title v_text - validate post body v_text - } + # validate post id v_uuid + # validate post title v_text + # validate post body v_text + # } route ^/.*$ { handler redirect -- cgit v1.2.3