From 500a79611fc2a0bba6a66ea3e94360019a78a997 Mon Sep 17 00:00:00 2001 From: Michael McVady Date: Thu, 5 Jan 2023 21:52:38 -0600 Subject: Flesh out toy endpoint more --- src/clog.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/clog.c') diff --git a/src/clog.c b/src/clog.c index 124c618..c2a7abb 100644 --- a/src/clog.c +++ b/src/clog.c @@ -380,18 +380,6 @@ toy(struct http_request *req) { goto out; } - /* - item = kore_json_find_integer_u64(json.root, "foo/integer"); - - if (item != NULL) { - kore_buf_appendf(&buf, - "foo.integer = '%" PRIu64 "'\n", item->data.u64); - } else { - kore_buf_appendf(&buf, "foo.integer %s\n", - kore_json_strerror()); - } - */ - err = kore_pgsql_setup(&sql, database, KORE_PGSQL_SYNC); if (err == KORE_RESULT_ERROR) { status = HTTP_STATUS_INTERNAL_ERROR; @@ -407,7 +395,6 @@ toy(struct http_request *req) { 0, 3, KORE_PGSQL_PARAM_TEXT("00000000-0000-0000-0000-000000000000"), - // 'af5bbaec-8d2b-11ed-9bf3-db5637a87ac5' KORE_PGSQL_PARAM_TEXT("title"), KORE_PGSQL_PARAM_TEXT("body") ); -- cgit v1.2.3