change route
This commit is contained in:
parent
30bf95c80a
commit
0d1eadc34c
|
@ -100,7 +100,7 @@ async fn main() {
|
|||
|
||||
// build our application with a route
|
||||
let app = Router::new()
|
||||
.route("/", post(alerts))
|
||||
.route("/api/v2/alerts", post(alerts))
|
||||
.with_state(state);
|
||||
|
||||
let addr = SocketAddr::from(([127, 0, 0, 1], 9022));
|
||||
|
|
Loading…
Reference in New Issue