From 444104e22a47ca820fc4f35786e169d6cf2f2811 Mon Sep 17 00:00:00 2001 From: Michael McVady Date: Tue, 7 May 2024 16:55:24 -0500 Subject: Fix new edit --- assets/entry_new.html | 8 ++++++++ conf/clog.conf | 2 +- src/clog.c | 5 +---- 3 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 assets/entry_new.html diff --git a/assets/entry_new.html b/assets/entry_new.html new file mode 100644 index 0000000..958dedc --- /dev/null +++ b/assets/entry_new.html @@ -0,0 +1,8 @@ +
+ + +
+ + +
+ diff --git a/conf/clog.conf b/conf/clog.conf index 8d8e778..9237b53 100644 --- a/conf/clog.conf +++ b/conf/clog.conf @@ -45,7 +45,7 @@ domain * { methods get } - route /entries/ { + route /entries { handler save_new_entry methods post diff --git a/src/clog.c b/src/clog.c index f82c875..b98e6d7 100644 --- a/src/clog.c +++ b/src/clog.c @@ -487,10 +487,7 @@ int get_new_entry_form(struct http_request *req) { content = kore_buf_alloc(0); - kore_buf_appendf( - content, (const char *) asset_entry_edit_html, - "", "", "" - ); + kore_buf_append(content, asset_entry_new_html, asset_len_entry_new_html); http_ok_resp(req, HTTP_STATUS_OK, content); -- cgit v1.2.3