diff --git a/examples/server/main.rs b/examples/server/main.rs index 124e876..7ec069f 100644 --- a/examples/server/main.rs +++ b/examples/server/main.rs @@ -31,6 +31,8 @@ async fn main() { server::create(addr, &DATABASES).await; }); - info!("Authress Local is now running on localhost:8888"); + const VERSION: &str = env!("CARGO_PKG_VERSION"); + + info!("Authress Local (Version: {}) is now running on localhost:8888", VERSION); task.await.unwrap(); } diff --git a/src/server/mod.rs b/src/server/mod.rs index 0a3a8b7..d42d87c 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -6883,7 +6883,7 @@ impl hyper::service::Service<(Request, C)> for Service where .expect("Unable to create OPTIONS response")); }, - z if path.matched(paths::ID_) => method_not_allowed(), + _ if path.matched(paths::ID_) => method_not_allowed(), _ if path.matched(paths::ID_API_AUTHENTICATION_OAUTH_TOKENS) => method_not_allowed(), _ if path.matched(paths::ID_V1_ACCOUNTS) => method_not_allowed(), _ if path.matched(paths::ID_V1_ACCOUNTS_ACCOUNTID) => method_not_allowed(),