accept prometheus_alerts on additional route

This commit is contained in:
Astro 2023-01-01 20:57:59 +01:00
parent 9a7c24acbd
commit a3bb18e799
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ async fn main() {
// build our application with a route // build our application with a route
let app = Router::new() let app = Router::new()
.route("/alert", post(prometheus_alerts)) .route("/alert", post(prometheus_alerts))
.route("/api/v2/alerts", post(prometheus_alerts))
.route("/notify", get(apprise_ok).post(apprise_notification)) .route("/notify", get(apprise_ok).post(apprise_notification))
.with_state(jabber); .with_state(jabber);