From d88f5cced222ac76511702a80e26dc7de8af93f3 Mon Sep 17 00:00:00 2001 From: Michael McVady Date: Thu, 5 Jan 2023 23:20:45 -0600 Subject: toy handles GET and POST requests --- conf/clog.conf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'conf') 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 ^/.*$ { -- cgit v1.2.3