aboutsummaryrefslogtreecommitdiff
path: root/conf/clog.conf
diff options
context:
space:
mode:
authorMichael McVady <femtonaut@gmail.com>2024-01-11 23:43:25 -0600
committerMichael McVady <femtonaut@gmail.com>2024-01-11 23:43:25 -0600
commitf810fe19b8152a32254133680e3d6f506e2277e6 (patch)
treebadafac7e1e876b74c7cd5e4a4c98684e9ee3625 /conf/clog.conf
parentf2aec9a94cee58d0e23f1a636f7eccd34f63a2b5 (diff)
Just keep hacking
Diffstat (limited to 'conf/clog.conf')
-rw-r--r--conf/clog.conf36
1 files changed, 18 insertions, 18 deletions
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