aboutsummaryrefslogtreecommitdiff
path: root/conf/clog.conf
diff options
context:
space:
mode:
authorMichael McVady <femtonaut@gmail.com>2023-10-29 16:45:51 -0500
committerMichael McVady <femtonaut@gmail.com>2023-10-29 17:55:59 -0500
commit2e3ceb247fa63db0bbf9ba71f06be50eeda74445 (patch)
treef4df7ea41ba427b76ad173c032347877fd9beb90 /conf/clog.conf
parent350ed67cc50c562459aaa34f7b6eefc389bec370 (diff)
Refactor: `post` -> `entry`
Diffstat (limited to 'conf/clog.conf')
-rw-r--r--conf/clog.conf28
1 files changed, 14 insertions, 14 deletions
diff --git a/conf/clog.conf b/conf/clog.conf
index 9a5e340..3476b52 100644
--- a/conf/clog.conf
+++ b/conf/clog.conf
@@ -12,7 +12,7 @@ privsep worker {
root /var/chroot/clog
- skip chroot
+ # skip chroot
}
seccomp_tracing no
@@ -27,43 +27,43 @@ domain * {
filemap /static/ assets/static
route / {
- handler get_posts
+ handler get_entries
methods get
}
- route /posts {
- handler get_posts
+ route /entries {
+ handler get_entries
methods get
}
- route /posts {
- handler post_posts
+ route /entries {
+ handler post_entry
methods post
}
- route ^/posts/[a-z0-9\-]+$ {
- handler get_posts_resource
+ route ^/entries/[a-z0-9\-]+$ {
+ handler get_entry
methods get
}
- route ^/posts/[a-z0-9\-]+$ {
- handler put_posts
+ route ^/entries/[a-z0-9\-]+$ {
+ handler put_entry
methods put
}
- route ^/posts/[a-z0-9\-]+$ {
- handler delete_posts
+ route ^/entries/[a-z0-9\-]+$ {
+ handler delete_entry
methods delete
}
# toy endpoint
route ^/form {
- handler get_form
+ handler get_entry_form
methods get
}
route ^/form {
- handler post_form
+ handler post_entry_form
methods post
validate post id v_uuid