about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander_Kabui <alexanderkabua@gmail.com>2026-10-04 10:52:15 +0300
committerAlexander_Kabui <alexanderkabua@gmail.com>2026-10-05 21:52:32 +0300
commitc960586ef238089a2b4722ce32b12497e8b77bb9 (patch)
tree88b8cb0ca9e1fb4f4eedc5acbe7e7c3aecf77762 /src
parentf063893efa75dd58a9ef125bbbc4e64f84721dd4 (diff)
downloadgenenetwork4-c960586ef238089a2b4722ce32b12497e8b77bb9.tar.gz
* src/routes/correlation.rs (correlation): rename endpoint to /compute/correlation.
API version prefixes are deployment concerns -- the v2 lives in the main URL (site/v2/compute/correlation) -- so code paths carry functional names only.
Diffstat (limited to 'src')
-rw-r--r--src/routes/correlation.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/correlation.rs b/src/routes/correlation.rs
index df10c22..a26ff34 100644
--- a/src/routes/correlation.rs
+++ b/src/routes/correlation.rs
@@ -31,7 +31,7 @@ pub struct CorrelationHit {
     pub correlation: f64,
 }
 
-#[utoipa::path(post, path = "/api/v2/correlation",
+#[utoipa::path(post, path = "/compute/correlation",
     summary = "Compute a sample correlation (STUB: canned data)",
     description = "Phase A target per topics/gn4/gn4-correlation.gmi. \
 Currently returns canned data wrapped in the descriptive envelope \
@@ -61,7 +61,7 @@ pub async fn correlation(
                 correlation: 0.87,
             },
         ])
-        .with_next("/api/v2/correlation", "Correlate another trait")
+        .with_next("/compute/correlation", "Correlate another trait")
         .with_next("/species", "Narrow by species"),
     ))
 }