aboutsummaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorMichael McVady <femtonaut@gmail.com>2023-07-07 00:15:09 -0500
committerMichael McVady <femtonaut@gmail.com>2023-07-07 00:15:09 -0500
commitb5c64ec289fe9e07603b3da5f3d246bf88c8a124 (patch)
treec1d5bbd690beb4e3de019c05bbea54dd565853c2 /conf
parent01da70c10dd338f1dc6aa319051ce281c73b1528 (diff)
Hack in markdown form
Diffstat (limited to 'conf')
-rw-r--r--conf/clog.conf18
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
}