From 32d745e22ad89b04f26e5e98e3c854d08b74a33c Mon Sep 17 00:00:00 2001 From: Darrell Date: Tue, 9 Apr 2024 17:50:35 +0900 Subject: [PATCH] fix publish_event endpoint --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f7a214a..2088700 100644 --- a/src/main.rs +++ b/src/main.rs @@ -53,7 +53,7 @@ async fn main() -> Result<()> { let app = Router::new() .route("/ping", get(handler::ping)) - .route("/publish_event", post(handler::publish_event)) + .route("/event", post(handler::publish_event)) .route("/events", post(handler::get_events)) .layer(if config.network.permissive_cors { CorsLayer::permissive()