From f6bbdf7cceead37dacd234b285402e18add5d9e9 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Tue, 23 Jul 2024 19:09:39 +0100 Subject: [PATCH] FIXUP config --- crates/config/src/server.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/config/src/server.rs b/crates/config/src/server.rs index 4a2b541..e02ba71 100644 --- a/crates/config/src/server.rs +++ b/crates/config/src/server.rs @@ -239,3 +239,11 @@ pub struct OutboundWebhook { url: String, secret: String, } +impl OutboundWebhook { + pub fn url(&self) -> &str { + self.url.as_ref() + } + pub fn secret(&self) -> Secret { + Secret::new(self.secret.clone()) + } +}