From b5c64ec289fe9e07603b3da5f3d246bf88c8a124 Mon Sep 17 00:00:00 2001 From: Michael McVady Date: Fri, 7 Jul 2023 00:15:09 -0500 Subject: Hack in markdown form --- conf/clog.conf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'conf/clog.conf') diff --git a/conf/clog.conf b/conf/clog.conf index 8006503..01e1715 100644 --- a/conf/clog.conf +++ b/conf/clog.conf @@ -17,6 +17,9 @@ privsep worker { seccomp_tracing no +validator v_number regex ^[0-9]*$ +validator v_text function v_example_func + domain * { attach notls @@ -52,6 +55,21 @@ domain * { methods delete } + # toy endpoint + route ^/form { + handler get_form + methods get + } + + route ^/form { + handler post_form + methods post + + validate post id v_number + validate post title v_number + validate post body v_text + } + route ^/.*$ { handler redirect } -- cgit v1.2.3