GET /api/flows?project=X — ranked entry→terminal flows. */
| 2928 | |
| 2929 | /* GET /api/flows?project=X — ranked entry→terminal flows. */ |
| 2930 | static void handle_atlas_flows(cbm_http_conn_t *c, const cbm_http_req_t *req) { |
| 2931 | char project[256] = {0}; |
| 2932 | cbm_store_t *store = atlas_open_project(c, req, project, sizeof(project)); |
| 2933 | if (!store) |
| 2934 | return; |
| 2935 | char *json = cbm_atlas_flows_json(store, project); |
| 2936 | cbm_store_close(store); |
| 2937 | atlas_reply_json(c, json, 500, "{\"error\":\"flow computation failed\"}"); |
| 2938 | } |
| 2939 | |
| 2940 | /* GET /api/flow?project=X&id=N — one flow's steps. */ |
| 2941 | static void handle_atlas_flow(cbm_http_conn_t *c, const cbm_http_req_t *req) { |
no test coverage detected