diff scid/page-api-todo.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-todo.c	Thu Aug 04 06:09:54 2022 +0200
+++ b/scid/page-api-todo.c	Thu Aug 04 14:13:58 2022 +0200
@@ -21,7 +21,7 @@
 
 #include "crud.h"
 #include "db.h"
-#include "page.h"
+#include "pageutil.h"
 #include "util.h"
 
 /*
@@ -46,7 +46,7 @@
 		get(r);
 		break;
 	default:
-		page(r, KHTTP_400, KMIME_APP_JSON, NULL, NULL);
+		pageutil_json(r, KHTTP_400, NULL);
 		break;
 	}
 }