aboutsummaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorMichael McVady <femtonaut@gmail.com>2023-01-06 06:31:15 -0600
committerMichael McVady <femtonaut@gmail.com>2023-01-06 06:31:15 -0600
commit850df3b8721963b6fefc226b533c347cde79ff25 (patch)
tree4cba77c8f758d251ba61883820801abc879091c7 /conf
parentd88f5cced222ac76511702a80e26dc7de8af93f3 (diff)
Hack in POST handling; needs refactoring
Diffstat (limited to 'conf')
-rw-r--r--conf/clog.conf9
1 files changed, 2 insertions, 7 deletions
diff --git a/conf/clog.conf b/conf/clog.conf
index 0cf3d26..9653e94 100644
--- a/conf/clog.conf
+++ b/conf/clog.conf
@@ -24,24 +24,19 @@ domain * {
route / {
handler posts
+ methods get
}
route /posts {
handler posts
- # TODO Handle HTTP POST request.
methods get post
}
route ^/posts/[a-z0-9\-]+$ {
- handler post
+ handler GET_post
methods get
}
- route /toys {
- handler toys
- methods get post
- }
-
route ^/.*$ {
handler redirect
}