GET /api/blast?project=X&files=a,b,c — bucket a file list by region. */
| 2881 | |
| 2882 | /* GET /api/blast?project=X&files=a,b,c — bucket a file list by region. */ |
| 2883 | static void handle_atlas_blast(cbm_http_conn_t *c, const cbm_http_req_t *req) { |
| 2884 | char project[256] = {0}; |
| 2885 | cbm_store_t *store = atlas_open_project(c, req, project, sizeof(project)); |
| 2886 | if (!store) |
| 2887 | return; |
| 2888 | char files[8192] = {0}; |
| 2889 | cbm_http_query_param(req->query, "files", files, (int)sizeof(files)); |
| 2890 | if (!files[0]) { |
| 2891 | cbm_store_close(store); |
| 2892 | cbm_http_replyf(c, 400, g_cors_json, "{\"error\":\"missing files parameter\"}"); |
| 2893 | return; |
| 2894 | } |
| 2895 | char *json = cbm_atlas_blast_json(store, project, files); |
| 2896 | cbm_store_close(store); |
| 2897 | atlas_reply_json(c, json, 500, "{\"error\":\"blast failed\"}"); |
| 2898 | } |
| 2899 | |
| 2900 | /* GET /api/bridges?project=X — boundary spanners by distinct-region reach. */ |
| 2901 | static void handle_atlas_bridges(cbm_http_conn_t *c, const cbm_http_req_t *req) { |
no test coverage detected