Skip to content

Commit 6c30437

Browse files
fix route for correlated dataset
1 parent 5f20edd commit 6c30437

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/handlers/http/datasets.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct CorrelatedDataset {
4848
shared_labels: Vec<String>,
4949
}
5050

51-
/// GET /api/v1/datasets/{name}/correlated
51+
/// GET /api/v1/datasets/correlated/{name}
5252
/// Returns all datasets sharing at least one tag or label with the named dataset.
5353
/// Results are filtered to only include datasets the caller is authorized to read.
5454
pub async fn get_correlated_datasets(

src/handlers/http/modal/server.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,15 +210,15 @@ impl Server {
210210
.authorize_for_resource(Action::GetRetention),
211211
)
212212
.route(
213-
"/tags/{tag}",
213+
"/correlated/{name}",
214214
web::get()
215-
.to(http::datasets::get_datasets_by_tag)
215+
.to(http::datasets::get_correlated_datasets)
216216
.authorize(Action::GetStreamInfo),
217217
)
218218
.route(
219-
"/{name}/correlated",
219+
"/tags/{tag}",
220220
web::get()
221-
.to(http::datasets::get_correlated_datasets)
221+
.to(http::datasets::get_datasets_by_tag)
222222
.authorize(Action::GetStreamInfo),
223223
)
224224
.route(

0 commit comments

Comments
 (0)