diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/endpoint.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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>) { |