accept prometheus_alerts on additional route
This commit is contained in:
parent
9a7c24acbd
commit
a3bb18e799
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue