aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml2
-rw-r--r--src/endpoint.rs5
3 files changed, 7 insertions, 2 deletions
diff --git a/Cargo.lock b/Cargo.lock
index f4b74e6..c5bf7ba 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -398,7 +398,7 @@ dependencies = [
[[package]]
name = "netapp"
-version = "0.3.0"
+version = "0.3.1"
dependencies = [
"arc-swap",
"async-trait",
diff --git a/Cargo.toml b/Cargo.toml
index 4fd524d..3621309 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "netapp"
-version = "0.3.0"
+version = "0.3.1"
authors = ["Alex Auvolat <alex@adnab.me>"]
edition = "2018"
license-file = "LICENSE"
diff --git a/src/endpoint.rs b/src/endpoint.rs
index f30b25e..760bf32 100644
--- a/src/endpoint.rs
+++ b/src/endpoint.rs
@@ -75,6 +75,11 @@ where
}
}
+ /// Get the path of this endpoint
+ pub fn path(&self) -> &str {
+ &self.path
+ }
+
/// Set the object that is responsible of handling requests to
/// this endpoint on the local node.
pub fn set_handler(&self, h: Arc<H>) {