MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / atlas_reply_json

Function atlas_reply_json

src/ui/http_server.c:2403–2411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2401}
2402
2403static 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. */
2414static void handle_atlas_tree(cbm_http_conn_t *c, const cbm_http_req_t *req) {

Callers 15

handle_atlas_treeFunction · 0.85
handle_atlas_symbolFunction · 0.85
handle_atlas_repositoryFunction · 0.85
handle_atlas_metricsFunction · 0.85
handle_atlas_traceFunction · 0.85
handle_atlas_whoFunction · 0.85
handle_atlas_impactFunction · 0.85
handle_atlas_whyFunction · 0.85
handle_atlas_blastFunction · 0.85
handle_atlas_bridgesFunction · 0.85

Calls 2

cbm_http_replyfFunction · 0.85
cbm_freeFunction · 0.85

Tested by

no test coverage detected