Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/handlers/http/modal/ingest_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ impl ParseableServer for IngestServer {
}

impl IngestServer {
fn analytics_factory() -> Scope {
pub fn analytics_factory() -> Scope {
web::scope("/analytics").service(
// GET "/analytics" ==> Get analytics data
web::resource("").route(
Expand All @@ -163,7 +163,7 @@ impl IngestServer {
}

// get the role webscope
fn get_user_role_webscope() -> Scope {
pub fn get_user_role_webscope() -> Scope {
web::scope("/role")
// GET Role List
.service(resource("").route(web::get().to(role::list).authorize(Action::ListRole)))
Expand All @@ -185,7 +185,7 @@ impl IngestServer {
)
}
// get the user webscope
fn get_user_webscope() -> Scope {
pub fn get_user_webscope() -> Scope {
web::scope("/user")
.service(
web::resource("/{username}/sync")
Expand Down Expand Up @@ -224,7 +224,7 @@ impl IngestServer {
),
)
}
fn logstream_api() -> Scope {
pub fn logstream_api() -> Scope {
web::scope("/logstream").service(
web::scope("/{logstream}")
.service(
Expand Down
8 changes: 4 additions & 4 deletions src/handlers/http/modal/query_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl ParseableServer for QueryServer {

impl QueryServer {
// get the role webscope
fn get_user_role_webscope() -> Scope {
pub fn get_user_role_webscope() -> Scope {
web::scope("/role")
// GET Role List
.service(resource("").route(web::get().to(role::list).authorize(Action::ListRole)))
Expand All @@ -178,7 +178,7 @@ impl QueryServer {
}

// get the user webscope
fn get_user_webscope() -> Scope {
pub fn get_user_webscope() -> Scope {
web::scope("/user")
.service(
web::resource("")
Expand Down Expand Up @@ -233,7 +233,7 @@ impl QueryServer {
}

// get the logstream web scope
fn get_logstream_webscope() -> Scope {
pub fn get_logstream_webscope() -> Scope {
web::scope("/logstream")
.service(
// GET "/logstream" ==> Get list of all Log Streams on the server
Expand Down Expand Up @@ -351,7 +351,7 @@ impl QueryServer {
)
}

fn get_cluster_web_scope() -> actix_web::Scope {
pub fn get_cluster_web_scope() -> actix_web::Scope {
web::scope("/cluster")
.service(
// GET "/cluster/info" ==> Get info of the cluster
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/http/modal/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ impl Server {
}

// get the user webscope
fn get_user_webscope() -> Scope {
pub fn get_user_webscope() -> Scope {
web::scope("/user")
.service(
web::resource("")
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
*/

mod about;
pub mod about;
mod alerts;
pub mod analytics;
pub mod audit;
Expand Down
Loading