From 5249aad35741f6f029c442a04d679937fb91d2bb Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Sat, 14 Sep 2024 00:16:51 -0400 Subject: Placeholder UX, probably --- src/channel/routes.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/channel/routes.rs') diff --git a/src/channel/routes.rs b/src/channel/routes.rs index 4f83a8b..eae68a2 100644 --- a/src/channel/routes.rs +++ b/src/channel/routes.rs @@ -1,6 +1,5 @@ use axum::{ extract::{Form, Path, State}, - http::StatusCode, response::{ sse::{self, Sse}, IntoResponse, Redirect, @@ -59,7 +58,7 @@ async fn on_send( .send(&login, &channel, &form.message, &sent_at) .await?; - Ok(StatusCode::ACCEPTED) + Ok(Redirect::to(&format!("/{}", channel))) } async fn on_events( -- cgit v1.2.3