aboutsummaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorMichael McVady <femtonaut@gmail.com>2023-01-05 23:20:45 -0600
committerMichael McVady <femtonaut@gmail.com>2023-01-05 23:20:45 -0600
commitd88f5cced222ac76511702a80e26dc7de8af93f3 (patch)
tree3f76754b5f8bc981166487838bd57cedbc76d427 /conf
parent17e9336e577d1453ac468956e04048c721306826 (diff)
toy handles GET and POST requests
Diffstat (limited to 'conf')
-rw-r--r--conf/clog.conf8
1 files changed, 6 insertions, 2 deletions
diff --git a/conf/clog.conf b/conf/clog.conf
index a2cf8dd..0cf3d26 100644
--- a/conf/clog.conf
+++ b/conf/clog.conf
@@ -28,14 +28,18 @@ domain * {
route /posts {
handler posts
+ # TODO Handle HTTP POST request.
+ methods get post
}
route ^/posts/[a-z0-9\-]+$ {
handler post
+ methods get
}
- route /toy {
- handler toy
+ route /toys {
+ handler toys
+ methods get post
}
route ^/.*$ {