diff --git a/token-server/src/main.rs b/token-server/src/main.rs index c603d8b9..fca9dd92 100644 --- a/token-server/src/main.rs +++ b/token-server/src/main.rs @@ -36,7 +36,6 @@ async fn main() { endpoints::token::token_init, endpoints::token::token_verify, endpoints::token::token_gen, - endpoints::token::token_accept, ]) .register("/", catchers![ not_found, diff --git a/token-server/src/server_config.rs b/token-server/src/server_config.rs index df7d486c..43363ef2 100644 --- a/token-server/src/server_config.rs +++ b/token-server/src/server_config.rs @@ -30,7 +30,7 @@ impl Default for ServerConfig { fee: String::from("10000"), delay: 3600, connection_string: String::from("postgresql://postgres:postgres@localhost/mercury"), - tnc: fs::read_to_string("../tnc.html").unwrap_or_else(|_| String::from("")), + tnc: fs::read_to_string("tnc.html").unwrap_or_else(|_| String::from("")), } } } @@ -44,7 +44,7 @@ impl From for ServerConfig { fee: config.get::("fee").unwrap_or_else(|_| String::new()), delay: config.get::("delay").unwrap_or(0), connection_string: config.get::("connection_string").unwrap_or_else(|_| String::new()), - tnc: fs::read_to_string("../tnc.html").unwrap_or_else(|_| String::from("")), + tnc: fs::read_to_string("tnc.html").unwrap_or_else(|_| String::from("")), } } } @@ -77,7 +77,7 @@ impl ServerConfig { fee: get_env_or_config("fee", "FEE"), delay: get_env_or_config("delay", "DELAY").parse::().unwrap(), connection_string: get_env_or_config("connection_string", "CONNECTION_STRING"), - tnc: fs::read_to_string("../tnc.html").unwrap_or_else(|_| String::from("")), + tnc: fs::read_to_string("tnc.html").unwrap_or_else(|_| String::from("")), } } }