diff scid/page-api-jobs.c @ 29:695637f1d8a7

scid: first index page in javascript
author David Demelier <markand@malikania.fr>
date Thu, 04 Aug 2022 14:13:58 +0200
parents dae2de19ca5d
children 081e1c258e64
line wrap: on
line diff
--- a/scid/page-api-jobs.c	Thu Aug 04 06:09:54 2022 +0200
+++ b/scid/page-api-jobs.c	Thu Aug 04 14:13:58 2022 +0200
@@ -20,7 +20,7 @@
 
 #include "crud.h"
 #include "db.h"
-#include "page.h"
+#include "pageutil.h"
 
 static void
 post(struct kreq *r)
@@ -38,7 +38,7 @@
 		post(r);
 		break;
 	default:
-		page(r, KHTTP_400, KMIME_APP_JSON, NULL, NULL);
+		pageutil_json(r, KHTTP_400, NULL);
 		break;
 	}
 }