From a3bb18e799a7db2996838d93e8a124cd60eabb20 Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 1 Jan 2023 20:57:59 +0100 Subject: [PATCH] accept prometheus_alerts on additional route --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 813d83e..72acf3d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -97,6 +97,7 @@ async fn main() { // build our application with a route let app = Router::new() .route("/alert", post(prometheus_alerts)) + .route("/api/v2/alerts", post(prometheus_alerts)) .route("/notify", get(apprise_ok).post(apprise_notification)) .with_state(jabber);