comparison scid/page-api-workers.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
comparison
equal deleted inserted replaced
28:4c16bb25e4f1 29:695637f1d8a7
19 #include <assert.h> 19 #include <assert.h>
20 #include <stdio.h> 20 #include <stdio.h>
21 21
22 #include "crud.h" 22 #include "crud.h"
23 #include "db.h" 23 #include "db.h"
24 #include "page.h" 24 #include "pageutil.h"
25 25
26 /* 26 /*
27 * GET /api/v1/workers[/<name>] 27 * GET /api/v1/workers[/<name>]
28 * ---------------------------- 28 * ----------------------------
29 * 29 *
64 break; 64 break;
65 case KMETHOD_POST: 65 case KMETHOD_POST:
66 post(r); 66 post(r);
67 break; 67 break;
68 default: 68 default:
69 page(r, KHTTP_400, KMIME_APP_JSON, NULL, NULL); 69 pageutil_json(r, KHTTP_400, NULL);
70 break; 70 break;
71 } 71 }
72 } 72 }