diff options
author | Michael McVady <femtonaut@gmail.com> | 2023-01-05 21:52:38 -0600 |
---|---|---|
committer | Michael McVady <femtonaut@gmail.com> | 2023-01-05 21:52:38 -0600 |
commit | 500a79611fc2a0bba6a66ea3e94360019a78a997 (patch) | |
tree | d3a962e0df562cec89bb05bb5b71a19ddfefc1eb /src/clog.c | |
parent | 141fcc9db67753a77331080f94296ad15cad72af (diff) |
Flesh out toy endpoint more
Diffstat (limited to 'src/clog.c')
-rw-r--r-- | src/clog.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -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") ); |