| 2401 | } |
| 2402 | |
| 2403 | static void atlas_reply_json(cbm_http_conn_t *c, char *json, int missing_status, |
| 2404 | const char *missing_body) { |
| 2405 | if (!json) { |
| 2406 | cbm_http_replyf(c, missing_status, g_cors_json, "%s", missing_body); |
| 2407 | return; |
| 2408 | } |
| 2409 | cbm_http_replyf(c, 200, g_cors_json, "%s", json); |
| 2410 | cbm_free(CBM_MEM_CLASS_OTHER, json); |
| 2411 | } |
| 2412 | |
| 2413 | /* GET /api/tree?project=X&path=src/foo — Modules aggregates. */ |
| 2414 | static void handle_atlas_tree(cbm_http_conn_t *c, const cbm_http_req_t *req) { |
no test coverage detected