Skip to content

Commit 5b2e09f

Browse files
move endpoints to enterprise
1 parent cacb58c commit 5b2e09f

3 files changed

Lines changed: 8 additions & 306 deletions

File tree

src/handlers/http/datasets.rs

Lines changed: 0 additions & 278 deletions
This file was deleted.

src/handlers/http/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ pub mod about;
3232
pub mod alerts;
3333
pub mod cluster;
3434
pub mod correlation;
35-
pub mod datasets;
3635
pub mod demo_data;
3736
pub mod health_check;
3837
pub mod ingest;

src/handlers/http/modal/server.rs

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -200,33 +200,14 @@ impl Server {
200200
}
201201

202202
pub fn get_prism_datasets() -> Scope {
203-
web::scope("/datasets")
204-
.route(
205-
"",
206-
web::post()
207-
.to(http::prism_logstream::post_datasets)
208-
.authorize_for_resource(Action::GetStreamInfo)
209-
.authorize_for_resource(Action::GetStats)
210-
.authorize_for_resource(Action::GetRetention),
211-
)
212-
.route(
213-
"/correlated/{name}",
214-
web::get()
215-
.to(http::datasets::get_correlated_datasets)
216-
.authorize(Action::GetStreamInfo),
217-
)
218-
.route(
219-
"/tags/{tag}",
220-
web::get()
221-
.to(http::datasets::get_datasets_by_tag)
222-
.authorize(Action::GetStreamInfo),
223-
)
224-
.route(
225-
"/{name}",
226-
web::put()
227-
.to(http::datasets::put_dataset_metadata)
228-
.authorize_for_resource(Action::CreateStream),
229-
)
203+
web::scope("/datasets").route(
204+
"",
205+
web::post()
206+
.to(http::prism_logstream::post_datasets)
207+
.authorize_for_resource(Action::GetStreamInfo)
208+
.authorize_for_resource(Action::GetStats)
209+
.authorize_for_resource(Action::GetRetention),
210+
)
230211
}
231212

232213
pub fn get_demo_data_webscope() -> Scope {

0 commit comments

Comments
 (0)