diff options
author | Michael McVady <femtonaut@gmail.com> | 2023-01-05 23:20:45 -0600 |
---|---|---|
committer | Michael McVady <femtonaut@gmail.com> | 2023-01-05 23:20:45 -0600 |
commit | d88f5cced222ac76511702a80e26dc7de8af93f3 (patch) | |
tree | 3f76754b5f8bc981166487838bd57cedbc76d427 /conf/clog.conf | |
parent | 17e9336e577d1453ac468956e04048c721306826 (diff) |
toy handles GET and POST requests
Diffstat (limited to 'conf/clog.conf')
-rw-r--r-- | conf/clog.conf | 8 |
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 ^/.*$ { |