diff --git a/src/handlers/http/modal/ingest_server.rs b/src/handlers/http/modal/ingest_server.rs index 199a3b95d..dce52a17b 100644 --- a/src/handlers/http/modal/ingest_server.rs +++ b/src/handlers/http/modal/ingest_server.rs @@ -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( @@ -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))) @@ -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") @@ -224,7 +224,7 @@ impl IngestServer { ), ) } - fn logstream_api() -> Scope { + pub fn logstream_api() -> Scope { web::scope("/logstream").service( web::scope("/{logstream}") .service( diff --git a/src/handlers/http/modal/query_server.rs b/src/handlers/http/modal/query_server.rs index e6b853afc..0304cffce 100644 --- a/src/handlers/http/modal/query_server.rs +++ b/src/handlers/http/modal/query_server.rs @@ -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))) @@ -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("") @@ -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 @@ -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 diff --git a/src/handlers/http/modal/server.rs b/src/handlers/http/modal/server.rs index 73301006a..556a77123 100644 --- a/src/handlers/http/modal/server.rs +++ b/src/handlers/http/modal/server.rs @@ -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("") diff --git a/src/lib.rs b/src/lib.rs index 6df6cd6ef..0fe86ff2c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,7 +16,7 @@ * */ -mod about; +pub mod about; mod alerts; pub mod analytics; pub mod audit;