mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-09 06:47:59 -06:00
Begin implementing unshell_lib::manager functionality in server
This commit is contained in:
@@ -1,8 +1,22 @@
|
||||
// #![macro_use]
|
||||
|
||||
mod api;
|
||||
pub mod database;
|
||||
mod server;
|
||||
pub use api::app::start_api;
|
||||
|
||||
pub use server::Server;
|
||||
|
||||
#[static_init::dynamic]
|
||||
static DATABASE_TREES: Vec<&'static str> = vec!["users"];
|
||||
pub static DATABASE_TREES: Vec<&'static str> = vec!["users"];
|
||||
|
||||
#[static_init::dynamic]
|
||||
pub static DEFAULT_HOST: String = "localhost".to_string();
|
||||
#[static_init::dynamic]
|
||||
pub static DATABASE_NAME: String = "database".to_string();
|
||||
|
||||
#[static_init::dynamic]
|
||||
pub static SERVER_CONFIG: unshell_lib::config::PayloadConfig = unshell_lib::config::PayloadConfig {
|
||||
id: "Server",
|
||||
components: unshell_lib::get_components(),
|
||||
runtime_config: Vec::new(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user