mirror of
https://github.com/moghtech/komodo.git
synced 2026-03-11 17:44:19 -05:00
periphery server_enabled /version route
This commit is contained in:
@@ -46,6 +46,7 @@ pub async fn run() -> anyhow::Result<()> {
|
||||
.context("failed to parse listen address")?;
|
||||
|
||||
let app = Router::new()
|
||||
.route("/version", get(|| async { env!("CARGO_PKG_VERSION") }))
|
||||
.route("/", get(crate::connection::server::handler))
|
||||
.layer(middleware::from_fn(guard_request_by_ip))
|
||||
.into_make_service_with_connect_info::<SocketAddr>();
|
||||
|
||||
Reference in New Issue
Block a user