diff options
Diffstat (limited to 'conf/clog.conf')
-rw-r--r-- | conf/clog.conf | 18 |
1 files changed, 18 insertions, 0 deletions
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 } |